source: osm/applications/editors/josm/plugins/agpifoj/build.xml@ 16630

Last change on this file since 16630 was 16603, checked in by jttt, 15 years ago

Made plug-in work with JOSM new ProgressMonitor API

File size: 3.0 KB
Line 
1<project name="AgPifoJ" 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="ant.build.javac.target" value="1.5"/>
7 <target name="init">
8 <mkdir dir="${plugin.build.dir}"/>
9 </target>
10 <target name="compile" depends="init">
11 <echo message="creating ${plugin.jar}"/>
12 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
13 <compilerarg value="-Xlint:deprecation"/>
14 <compilerarg value="-Xlint:unchecked"/>
15 </javac>
16 </target>
17 <target name="dist" depends="compile,revision">
18 <copy todir="${plugin.build.dir}">
19 <fileset dir=".">
20 <include name="CHANGELOG"/>
21 <include name="LICENSE"/>
22 <include name="README"/>
23 </fileset>
24 </copy>
25 <copy todir="${plugin.build.dir}/images">
26 <fileset dir="images"/>
27 </copy>
28 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
29 <manifest>
30 <attribute name="Author" value="Christian Gallioz"/>
31 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.agpifoj.AgpifojPlugin"/>
32 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
33 <attribute name="Plugin-Description" value="Another geotag plugin for JOSM. Correlates pictures with GPS tracks or import EXIF geotagged pictures."/>
34 <attribute name="Plugin-Early" value="false"/>
35 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/>
36 <attribute name="Plugin-Mainversion" value="1815"/>
37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
38 </manifest>
39 </jar>
40 </target>
41 <target name="revision">
42 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
43 <env key="LANG" value="C"/>
44 <arg value="info"/>
45 <arg value="--xml"/>
46 <arg value="."/>
47 </exec>
48 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
49 <delete file="REVISION"/>
50 </target>
51 <target name="clean">
52 <delete dir="${plugin.build.dir}"/>
53 <delete file="${plugin.jar}"/>
54 </target>
55 <target name="install" depends="dist">
56 <property environment="env"/>
57 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
58 <and>
59 <os family="windows"/>
60 </and>
61 </condition>
62 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
63 </target>
64</project>
Note: See TracBrowser for help on using the repository browser.