source: osm/applications/editors/josm/plugins/duplicateway/build.xml@ 5154

Last change on this file since 5154 was 5153, checked in by joerg, 17 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.7 KB
Line 
1<project name="Duplicate-Way" default="dist" 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 <target name="init">
13 <mkdir dir="${plugin.build.dir}"/>
14 </target>
15
16
17 <target name="compile" depends="init">
18 <mkdir dir="build"></mkdir>
19 <mkdir dir="${plugin.build.dir}/images"></mkdir>
20 <copy todir="build">
21 <fileset dir="${plugin.build.dir}" casesensitive="yes">
22 <filename name="**/*.class"/>
23 </fileset>
24 </copy>
25 <copy todir="${plugin.build.dir}/images">
26 <fileset dir="images" casesensitive="yes">
27 <filename name="**/*.png"/>
28 </fileset>
29 </copy>
30 </target>
31
32 <target name="dist" depends="compile">
33 <jar destfile="${plugin.jar}" basedir="build">
34 <manifest>
35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" />
36 <attribute name="Plugin-Description" value="Duplicate Ways with an offset" />
37 <attribute name="Plugin-Version" value="0.1"/>
38 <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>"/>
39 </manifest>
40 </jar>
41 </target>
42
43 <target name="clean">
44 <delete dir="${plugin.build.dir}" />
45 <delete file="${plugin.jar}" />
46 </target>
47
48 <target name="install" depends="dist">
49 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
50 </target>
51
52</project>
Note: See TracBrowser for help on using the repository browser.