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

Last change on this file since 3278 was 3080, checked in by christofd, 19 years ago

using the original livegps now
small fixes in build variable usage

File size: 1.7 KB
Line 
1<project name="surveyor" default="dist" basedir=".">
2
3 <property name="josm.build.dir" value="../JOSM"/>
4 <property name="josm.home.dir" value="${user.home}/.josm"/>
5 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
6 <property name="plugin.build.dir" value="bin"/>
7
8
9
10 <target name="dist" depends="compile">
11 <!-- images -->
12 <copy todir="${plugin.build.dir}/images">
13 <fileset dir="src/images" />
14 </copy>
15 <!-- copy configuration xml files -->
16 <copy todir="${plugin.build.dir}">
17 <fileset dir="src">
18 <include name="*.xml"/>
19 </fileset>
20 </copy>
21
22 <!-- create josm-custom.jar -->
23 <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
24 <manifest>
25 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
26 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
27 <attribute name="Plugin-Dependencies" value="livegps" />
28 <attribute name="Plugin-Stage" value="60" />
29 </manifest>
30 </jar>
31 </target>
32
33 <target name="compile" depends="init">
34 <mkdir dir="${plugin.build.dir}"/>
35 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
36 <classpath>
37 <pathelement path="${josm.build.dir}/build"/>
38 <fileset dir="${josm.build.dir}/lib">
39 <include name="**/*.jar"/>
40 </fileset>
41 <pathelement location="${livegpsplugin.jar}"/>
42 </classpath>
43 </javac>
44 </target>
45
46 <target name="install" depends="dist">
47 <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
48 </target>
49
50 <target name="init">
51 </target>
52
53 <target name="clean">
54 <delete dir="${plugin.build.dir}" />
55 </target>
56
57</project>
Note: See TracBrowser for help on using the repository browser.