source: osm/applications/editors/josm/plugins/navigator/build.xml@ 14222

Last change on this file since 14222 was 14128, checked in by stoecker, 16 years ago

cleanup build

File size: 2.8 KB
Line 
1<project name="navigator" default="dist" basedir=".">
2 <property name="josm" location="../../core/dist/josm-custom.jar"/>
3 <property name="plugin.dist.dir" value="../../dist"/>
4 <property name="plugin.build.dir" value="build"/>
5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
6 <property name="ant.build.javac.target" value="1.5"/>
7 <target name="init">
8 <mkdir dir="${plugin.build.dir}"/>
9 </target>
10 <target name="compile" depends="init">
11 <echo message="creating ${plugin.jar}"/>
12 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
13 <compilerarg value="-Xlint:deprecation"/>
14 <compilerarg value="-Xlint:unchecked"/>
15 <classpath>
16 <pathelement location="${josm}"/>
17 <fileset dir="lib">
18 <include name="**/*.jar"/>
19 </fileset>
20 </classpath>
21 </javac>
22 </target>
23 <target name="dist" depends="compile,revision">
24 <unjar dest="${plugin.build.dir}">
25 <fileset dir="lib"/>
26 </unjar>
27 <copy todir="${plugin.build.dir}/images">
28 <fileset dir="images"/>
29 </copy>
30 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
31 <manifest>
32 <attribute name="Author" value="Christof Dallermassl" />
33 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.navigator.NavigatorPlugin" />
34 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
35 <attribute name="Plugin-Description" value="Provides navigation/autorouting functionality" />
36 <attribute name="Plugin-Stage" value="50" />
37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
38 </manifest>
39 </jar>
40 </target>
41 <target name="revision">
42 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
43 <env key="LANG" value="C"/>
44 <arg value="info"/>
45 <arg value="--xml"/>
46 <arg value="."/>
47 </exec>
48 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
49 <delete file="REVISION"/>
50 </target>
51 <target name="clean">
52 <delete dir="${plugin.build.dir}"/>
53 <delete file="${plugin.jar}"/>
54 </target>
55 <target name="install" depends="dist">
56 <property environment="env"/>
57 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
58 <and>
59 <os family="windows"/>
60 </and>
61 </condition>
62 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
63 </target>
64</project>
Note: See TracBrowser for help on using the repository browser.