source: osm/applications/editors/josm/plugins/livegps/build.xml@ 3405

Last change on this file since 3405 was 3352, checked in by christofd, 17 years ago

added plugin version

File size: 1.7 KB
Line 
1<project name="livegps" 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="plugin.build.dir" value="build"/>
6
7
8
9 <target name="dist" depends="compile">
10 <!-- images -->
11 <copy todir="${plugin.build.dir}/images">
12 <fileset dir="images" />
13 </copy>
14 <!-- copy configuration xml files -->
15 <!--
16 <copy todir="${plugin.build.dir}">
17 <fileset dir="src">
18 <include name="*.xml"/>
19 </fileset>
20 </copy>
21 -->
22
23 <!-- create plugin jar -->
24 <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
25 <manifest>
26 <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin" />
27 <attribute name="Plugin-Description" value="Allow live GPS feed from a gpsd server" />
28 <attribute name="Plugin-Version" value="1.0" />
29 <attribute name="Plugin-Stage" value="50" />
30 </manifest>
31 </jar>
32 </target>
33
34 <target name="compile" depends="init">
35 <mkdir dir="${plugin.build.dir}"/>
36 <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
37 <classpath>
38 <pathelement path="${josm.build.dir}/build"/>
39 <fileset dir="${josm.build.dir}/lib">
40 <include name="**/*.jar"/>
41 </fileset>
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 <mkdir dir="${plugin.build.dir}" />
52 </target>
53
54 <target name="clean">
55 <delete dir="${plugin.build.dir}" />
56 </target>
57
58</project>
Note: See TracBrowser for help on using the repository browser.