| 1 | <project name="imagewaypoint" default="dist" basedir=".">
|
|---|
| 2 | <!-- compilation properties -->
|
|---|
| 3 | <property name="josm.build.dir" value="../../core"/>
|
|---|
| 4 | <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
|
|---|
| 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 | <target name="dist" depends="compile">
|
|---|
| 11 | <copy todir="build/images">
|
|---|
| 12 | <fileset dir="images" />
|
|---|
| 13 | </copy>
|
|---|
| 14 | <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
|
|---|
| 15 | <env key="LANG" value="C"/>
|
|---|
| 16 | <arg value="info"/>
|
|---|
| 17 | <arg value="--xml"/>
|
|---|
| 18 | <arg value="."/>
|
|---|
| 19 | </exec>
|
|---|
| 20 | <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
|
|---|
| 21 | <delete file="REVISION"/>
|
|---|
| 22 | <delete file="${plugin.jar}"/>
|
|---|
| 23 | <jar destfile="${plugin.jar}" basedir="build">
|
|---|
| 24 | <manifest>
|
|---|
| 25 | <attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin" />
|
|---|
| 26 | <attribute name="Plugin-Description" value="An other geotag plugin for josm. Correlates pictures with GPS tracks if the image name is sorted in the GPX trkpt tag." />
|
|---|
| 27 | <attribute name="Plugin-Early" value="false" />
|
|---|
| 28 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
|---|
| 29 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
|---|
| 30 | <attribute name="Plugin-Mainversion" value="1180" />
|
|---|
| 31 | </manifest>
|
|---|
| 32 | </jar>
|
|---|
| 33 | </target>
|
|---|
| 34 | <target name="compile" depends="init">
|
|---|
| 35 | <echo message="creating ${plugin.jar}"/>
|
|---|
| 36 | <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
|
|---|
| 37 | <compilerarg value="-Xlint:deprecation"/>
|
|---|
| 38 | <compilerarg value="-Xlint:unchecked"/>
|
|---|
| 39 | <include name="**/*.java" />
|
|---|
| 40 | </javac>
|
|---|
| 41 | </target>
|
|---|
| 42 | <target name="init">
|
|---|
| 43 | <mkdir dir="build" />
|
|---|
| 44 | </target>
|
|---|
| 45 | <target name="clean">
|
|---|
| 46 | <delete dir="build" />
|
|---|
| 47 | </target>
|
|---|
| 48 | </project>
|
|---|