source: subversion/applications/editors/josm/plugins/tagging-preset-tester/build.xml @ 12588

Last change on this file since 12588 was 12588, checked in by Dirk Stoecker, 11 years ago

updated a lot

File size: 2.1 KB
Line 
1<project name="tagging-preset-tester" default="dist" basedir=".">
2
3  <!-- compilation properties -->
4  <property name="josm.build.dir"       value="../../core"/>
5  <property name="josm.home.dir"        value="${user.home}/.josm"/>
6  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
7  <property name="plugin.build.dir"     value="build"/>
8  <property name="plugin.dist.dir"      value="../../dist"/>
9  <property name="plugin.name"          value="${ant.project.name}"/>
10  <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
11
12  <property name="ant.build.javac.target" value="1.5"/>
13
14  <target name="compile">
15    <echo message="creating ${plugin.jar}"/>
16    <mkdir dir="build"/>
17    <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar">
18      <compilerarg value="-Xlint:deprecation"/>
19    </javac>
20  </target>
21
22  <target name="dist" depends="compile">
23    <mkdir dir="dist"/>
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-Version" value="${version.entry.commit.revision}"/>
35        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
36        <attribute name="Plugin-Description" value="Make the Tagging Preset Tester tool available in the help menu." />
37        <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester" />
38        <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction" />
39        <attribute name="Plugin-Mainversion" value="1180" />
40      </manifest>
41      <fileset dir="."><include name="images/*"/></fileset>
42    </jar>
43  </target>
44 
45  <target name="clean">
46    <delete dir="${plugin.build.dir}" />
47    <delete file="${plugin.jar}" />
48  </target>
49
50</project>
Note: See TracBrowser for help on using the repository browser.