1 | <project name="tagging-preset-tester" 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 | <property name="ant.build.javac.target" value="1.5"/>
|
---|
11 | <target name="compile">
|
---|
12 | <echo message="creating ${plugin.jar}"/>
|
---|
13 | <mkdir dir="build"/>
|
---|
14 | <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar">
|
---|
15 | <compilerarg value="-Xlint:deprecation"/>
|
---|
16 | </javac>
|
---|
17 | </target>
|
---|
18 | <target name="dist" depends="compile">
|
---|
19 | <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
|
---|
20 | <env key="LANG" value="C"/>
|
---|
21 | <arg value="info"/>
|
---|
22 | <arg value="--xml"/>
|
---|
23 | <arg value="."/>
|
---|
24 | </exec>
|
---|
25 | <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
|
---|
26 | <delete file="REVISION"/>
|
---|
27 | <jar destfile="${plugin.jar}" basedir="build">
|
---|
28 | <manifest>
|
---|
29 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
30 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
31 | <attribute name="Plugin-Description" value="Make the Tagging Preset Tester tool available in the help menu." />
|
---|
32 | <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester" />
|
---|
33 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction" />
|
---|
34 | <attribute name="Plugin-Mainversion" value="1180" />
|
---|
35 | </manifest>
|
---|
36 | <fileset dir=".">
|
---|
37 | <include name="images/*"/>
|
---|
38 | </fileset>
|
---|
39 | </jar>
|
---|
40 | </target>
|
---|
41 | <target name="clean">
|
---|
42 | <delete dir="${plugin.build.dir}" />
|
---|
43 | <delete file="${plugin.jar}" />
|
---|
44 | </target>
|
---|
45 | </project>
|
---|