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

Last change on this file since 17359 was 17359, checked in by guggis, 15 years ago

Update to ToggleDialog refactoring in JOSM 2005 - 2012

  • 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="2012"/>
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.