source: osm/applications/editors/josm/plugins/surveyor/build.xml@ 14003

Last change on this file since 14003 was 14003, checked in by stoecker, 15 years ago

cleanup build scripts and manifests

File size: 3.2 KB
Line 
1<project name="surveyor" 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="livegpsplugin.jar" value="${plugin.dist.dir}/livegps.jar"/>
7 <property name="ant.build.javac.target" value="1.5"/>
8 <target name="init">
9 <mkdir dir="${plugin.build.dir}"/>
10 </target>
11 <target name="compile" depends="init">
12 <echo message="creating ${plugin.jar}"/>
13 <javac srcdir="src" debug="false" destdir="${plugin.build.dir}">
14 <compilerarg value="-Xlint:deprecation"/>
15 <compilerarg value="-Xlint:unchecked"/>
16 <classpath>
17 <pathelement location="${josm}"/>
18 <pathelement location="${livegpsplugin.jar}"/>
19 </classpath>
20 </javac>
21 </target>
22 <target name="dist" depends="compile,revision">
23 <copy todir="${plugin.build.dir}/">
24 <fileset dir="resources">
25 <include name="*.xml"/>
26 <include name="audio/*"/>
27 </fileset>
28 </copy>
29 <copy todir="${plugin.build.dir}/images">
30 <fileset dir="images"/>
31 </copy>
32 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
33 <manifest>
34 <attribute name="Author" value="Christof Dallermassl"/>
35 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
36 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
37 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
38 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
39 <attribute name="Plugin-Mainversion" value="1326"/>
40 <attribute name="Plugin-Requires" value="livegps"/>
41 <attribute name="Plugin-Stage" value="60"/>
42 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
43 </manifest>
44 </jar>
45 </target>
46 <target name="revision">
47 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
48 <env key="LANG" value="C"/>
49 <arg value="info"/>
50 <arg value="--xml"/>
51 <arg value="."/>
52 </exec>
53 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
54 <delete file="REVISION"/>
55 </target>
56 <target name="clean">
57 <delete dir="${plugin.build.dir}"/>
58 <delete file="${plugin.jar}"/>
59 </target>
60 <target name="install" depends="dist">
61 <property environment="env"/>
62 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
63 <and>
64 <os family="windows"/>
65 </and>
66 </condition>
67 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
68 </target>
69</project>
Note: See TracBrowser for help on using the repository browser.