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

Last change on this file since 16788 was 16625, checked in by jttt, 15 years ago

Make it work without Main.ds

File size: 3.2 KB
RevLine 
[2936]1<project name="surveyor" default="dist" basedir=".">
[14003]2 <property name="josm" location="../../core/dist/josm-custom.jar"/>
[13332]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"/>
[12780]7 <property name="ant.build.javac.target" value="1.5"/>
[13332]8 <target name="init">
9 <mkdir dir="${plugin.build.dir}"/>
10 </target>
11 <target name="compile" depends="init">
12 <echo message="creating ${plugin.jar}"/>
[14015]13 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
[13332]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>
[14003]22 <target name="dist" depends="compile,revision">
[12780]23 <copy todir="${plugin.build.dir}/">
24 <fileset dir="resources">
25 <include name="*.xml"/>
26 <include name="audio/*"/>
27 </fileset>
28 </copy>
[14003]29 <copy todir="${plugin.build.dir}/images">
30 <fileset dir="images"/>
[13332]31 </copy>
[12780]32 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
33 <manifest>
[14003]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"/>
[16625]39 <attribute name="Plugin-Mainversion" value="1815"/>
[14003]40 <attribute name="Plugin-Requires" value="livegps"/>
41 <attribute name="Plugin-Stage" value="60"/>
[12780]42 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
43 </manifest>
44 </jar>
45 </target>
[14003]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>
[12780]56 <target name="clean">
[14003]57 <delete dir="${plugin.build.dir}"/>
58 <delete file="${plugin.jar}"/>
[12780]59 </target>
[14003]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>
[2936]69</project>
Note: See TracBrowser for help on using the repository browser.