source: osm/applications/editors/josm/plugins/usertools/build.xml@ 15558

Last change on this file since 15558 was 14015, checked in by stoecker, 16 years ago

some validator fixes, reenabled debug

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1<project name="usertools" 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 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
19 <manifest>
20 <attribute name="Author" value="Tim Waters"/>
21 <attribute name="Plugin-Class" value="usertools.UserToolsPlugin"/>
22 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
23 <attribute name="Plugin-Description" value="Tools to work with authors/users. Selects map data that belongs to selected user, opens browser showing selected author profile page."/>
24 <attribute name="Plugin-Mainversion" value="1465"/>
25 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
26 </manifest>
27 </jar>
28 </target>
29 <target name="revision">
30 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
31 <env key="LANG" value="C"/>
32 <arg value="info"/>
33 <arg value="--xml"/>
34 <arg value="."/>
35 </exec>
36 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
37 <delete file="REVISION"/>
38 </target>
39 <target name="clean">
40 <delete dir="${plugin.build.dir}"/>
41 <delete file="${plugin.jar}"/>
42 </target>
43 <target name="install" depends="dist">
44 <property environment="env"/>
45 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
46 <and>
47 <os family="windows"/>
48 </and>
49 </condition>
50 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
51 </target>
52</project>
Note: See TracBrowser for help on using the repository browser.