source: osm/applications/editors/josm/plugins/czechaddress/build.xml@ 30197

Last change on this file since 30197 was 29854, checked in by donvip, 11 years ago

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

  • Property svn:mime-type set to text/xml
File size: 5.4 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="czechaddress" default="dist" basedir=".">
3 <property name="josm" location="../../core/dist/josm-custom.jar"/>
4 <property name="plugin.dist.dir" value="../../dist"/>
5 <property name="plugin.build.dir" value="build"/>
6 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
7 <property name="plugin.manifest" value="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
8 <property name="ant.build.javac.target" value="1.6"/>
9 <target name="clean" description="Removes all build files and the plugins's jar">
10 <delete dir="${plugin.build.dir}"/>
11 <delete file="${plugin.jar}"/>
12 </target>
13 <target name="init">
14 <mkdir dir="${plugin.build.dir}"/>
15 <mkdir dir="${plugin.dist.dir}"/>
16 </target>
17 <target name="compile" depends="init,revision" description="Compile the plugin and make it ready for running">
18 <javac srcdir="src" classpath="${josm}" debug="true" encoding="utf8" destdir="${plugin.build.dir}">
19 <compilerarg value="-Xlint:deprecation"/>
20 <compilerarg value="-Xlint:unchecked"/>
21 </javac>
22 <copy todir="${plugin.build.dir}/images">
23 <fileset dir="images"/>
24 </copy>
25 <copy todir="${plugin.build.dir}/data">
26 <fileset dir="data"/>
27 </copy>
28 <manifest file="${plugin.manifest}">
29 <attribute name="Author" value="Radomír Černoch"/>
30 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.czechaddress.CzechAddressPlugin"/>
31 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
32 <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/>
33 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/CS:JOSM/Plugins/CzechAddress"/>
34 <attribute name="Plugin-Icon" value="images/preferences/czech_flag.png"/>
35 <attribute name="Plugin-Mainversion" value="6162"/>
36 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
37 </manifest>
38 </target>
39 <target name="dist" depends="compile">
40 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
41 </target>
42 <target name="revision">
43 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
44 <env key="LANG" value="C"/>
45 <arg value="info"/>
46 <arg value="--xml"/>
47 <arg value="."/>
48 </exec>
49 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
50 <delete file="REVISION"/>
51 </target>
52 <target name="install" depends="dist">
53 <property environment="env"/>
54 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
55 <and>
56 <os family="windows"/>
57 </and>
58 </condition>
59 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
60 </target>
61 <target name="run" depends="compile">
62 <java classname="JOSM" fork="true">
63 <jvmarg value="-Xmx1024m"/>
64 <jvmarg value="-Xdebug"/>
65 <jvmarg value="-ea"/>
66 <jvmarg value="-Djava.net.useSystemProxies=true"/>
67 <classpath>
68 <pathelement location="${plugin.build.dir}"/>
69 <pathelement path="${java.class.path}"/>
70 </classpath>
71 <classpath>
72 <pathelement location="${josm}"/>
73 <pathelement path="${java.class.path}"/>
74 </classpath>
75 </java>
76 </target>
77 <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans">
78 <fail unless="netbeans.home">
79 This target can only run inside the NetBeans IDE.
80 </fail>
81 <nbprofiledirect>
82 <classpath>
83 <pathelement location="${plugin.build.dir}"/>
84 </classpath>
85 </nbprofiledirect>
86 <java classname="JOSM" fork="true">
87 <jvmarg value="${profiler.info.jvmargs.agent}"/>
88 <jvmarg value="-Xmx1024m"/>
89 <classpath>
90 <pathelement location="${plugin.build.dir}"/>
91 <pathelement path="${java.class.path}"/>
92 </classpath>
93 <classpath>
94 <pathelement location="${josm}"/>
95 <pathelement path="${java.class.path}"/>
96 </classpath>
97 </java>
98 </target>
99 <target name="debug" depends="compile" description="Debug CzechAddress with Netbeans">
100 <nbjpdastart addressproperty="jpda.address" name="czechaddress" transport="dt_socket"/>
101 <java classname="JOSM" fork="true">
102 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
103 <jvmarg value="-Xmx1024m"/>
104 <jvmarg value="-Xdebug"/>
105 <jvmarg value="-ea"/>
106 <classpath>
107 <pathelement location="${plugin.build.dir}"/>
108 <pathelement path="${java.class.path}"/>
109 </classpath>
110 <classpath>
111 <pathelement location="${josm}"/>
112 <pathelement path="${java.class.path}"/>
113 </classpath>
114 </java>
115 </target>
116</project>
Note: See TracBrowser for help on using the repository browser.