source: subversion/applications/editors/josm/plugins/osmarender/build.xml @ 5153

Last change on this file since 5153 was 5153, checked in by joerg, 12 years ago

josm/plugins/*build.xml: now we use the unique target dist for creating .jar files. Use a lot more variables to be able to move the build directory. destination directory for .jar files is now plugins/dist/*.jar. correcteed clean targets

File size: 1.6 KB
Line 
1<project name="osmarender" default="install" basedir=".">
2
3  <!-- compilation properties -->
4  <property name="josm.build.dir"       value="../../core"/>
5  <property name="josm.home.dir"        value="${user.home}/.josm"/>
6  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
7  <property name="plugin.build.dir"     value="build"/>
8  <property name="plugin.dist.dir"      value="../dist"/>
9  <property name="plugin.name"          value="${ant.project.name}"/>
10  <property name="plugin.jar"           value="../dist/${plugin.name}.jar"/>
11
12  <property name="josm" location="../../core/dist/josm-custom.jar" />
13  <property name="rendering" location="../../../../rendering" />
14
15  <target name="compile">
16    <mkdir dir="${plugin.build.dir}"></mkdir>
17    <mkdir dir="${plugin.dist.dir}"></mkdir>
18    <javac srcdir="src" debug="true" classpath="${josm}" destdir="${plugin.build.dir}">
19      <include name="**/*.java" />
20    </javac>
21  </target>
22
23  <target name="dist"  depends="compile">
24    <copy todir="${plugin.build.dir}" file="${rendering}/osmarender6/osmarender.xsl"/>
25    <copy tofile="${plugin.build.dir}/osm-map-features.xml"
26          file="${rendering}/osmarender5/osm-map-features-z17.xml"/>
27    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
28      <manifest>
29        <attribute name="Plugin-Class" value="OsmarenderPlugin" />
30        <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image" />
31      </manifest>
32    </jar>
33  </target>
34
35  <target name="clean">
36    <delete dir="${plugin.build.dir}" />
37    <delete file="${plugin.jar}" />
38  </target>
39
40  <target name="install" depends="compile,dist" />
41
42</project>
Note: See TracBrowser for help on using the repository browser.