source: osm/applications/editors/josm/plugins/namefinder/build.xml@ 5179

Last change on this file since 5179 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.8 KB
Line 
1<project name="namefinder" 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 <!-- init target -->
13 <target name="init">
14 <mkdir dir="${plugin.build.dir}" />
15 </target>
16
17 <!-- clean target -->
18 <target name="clean">
19 <delete dir="${plugin.build.dir}" />
20 <delete file="${plugin.jar}" />
21 </target>
22
23 <!-- compile target -->
24 <target name="compile" depends="init">
25 <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
26 <classpath>
27 <pathelement path="${josm.build.dir}/build"/>
28 <pathelement path="${josm.build.dir}/src"/>
29 <fileset dir="${josm.build.dir}/lib">
30 <include name="**/*.jar"/>
31 </fileset>
32 </classpath>
33 </javac>
34 </target>
35
36 <!-- dist target - create jar file -->
37 <target name="dist" depends="compile">
38 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
39 <manifest>
40 <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" />
41 <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" />
42 <attribute name="Plugin-Version" value="1.0" />
43 </manifest>
44 </jar>
45 </target>
46
47 <!-- install target - copy jar file to plugin destination -->
48 <target name="install" depends="dist">
49 <copy file="../dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
50 </target>
51
52</project>
53
Note: See TracBrowser for help on using the repository browser.