source: osm/applications/editors/josm/plugins/waypoints/build.xml@ 12892

Last change on this file since 12892 was 12781, checked in by stoecker, 16 years ago

removed last references to local dist

File size: 2.2 KB
Line 
1<project name="waypoints" default="dist" basedir=".">
2<!-- compilation properties -->
3 <property name="josm.build.dir" value="../../core"/>
4 <property name="josm.home.dir" value="${user.home}/.josm"/>
5 <property name="josm" location="../../core/dist/josm-custom.jar" />
6 <property name="plugin.build.dir" value="build"/>
7 <property name="plugin.dist.dir" value="../../dist"/>
8 <property name="plugin.name" value="${ant.project.name}"/>
9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
10<!-- point to your JOSM directory -->
11 <property name="josm" location="../../core/dist/josm-custom.jar" />
12 <property name="ant.build.javac.target" value="1.5"/>
13 <target name="init">
14 <mkdir dir="build"></mkdir>
15 </target>
16 <target name="compile" depends="init">
17 <echo message="creating ${plugin.jar}"/>
18 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
19 <compilerarg value="-Xlint:deprecation"/>
20 <include name="**/*.java" />
21 </javac>
22 </target>
23 <target name="dist" depends="compile">
24 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
25 <env key="LANG" value="C"/>
26 <arg value="info"/>
27 <arg value="--xml"/>
28 <arg value="."/>
29 </exec>
30 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
31 <delete file="REVISION"/>
32 <jar destfile="${plugin.jar}" basedir="build">
33 <manifest>
34 <attribute name="Plugin-Class" value="waypoints.WaypointPlugin" />
35 <attribute name="Plugin-Description" value="Automatic conversion of waypoints in a GPX file to OSM nodes." />
36 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
37 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
38 <attribute name="Plugin-Mainversion" value="1180" />
39 </manifest>
40 </jar>
41 </target>
42<!-- clean target -->
43 <target name="clean">
44 <delete dir="${plugin.build.dir}" />
45 <delete file="${plugin.jar}" />
46 </target>
47</project>
Note: See TracBrowser for help on using the repository browser.