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

Last change on this file since 26944 was 26605, checked in by stoecker, 14 years ago

fix build version due to core change

File size: 5.3 KB
RevLine 
[26174]1<?xml version="1.0" encoding="utf-8"?>
[15166]2<project name="czechaddress" default="dist" basedir=".">
[26174]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"/>
[15166]8 <property name="ant.build.javac.target" value="1.5"/>
[15763]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>
[15166]13 <target name="init">
14 <mkdir dir="${plugin.build.dir}"/>
[15763]15 <mkdir dir="${plugin.dist.dir}"/>
[15166]16 </target>
[26174]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}">
[15707]19 <compilerarg value="-Xlint:deprecation"/>
20 <compilerarg value="-Xlint:unchecked"/>
21 </javac>
[15558]22 <copy todir="${plugin.build.dir}/images">
23 <fileset dir="images"/>
24 </copy>
[26174]25 <copy todir="${plugin.build.dir}/data">
26 <fileset dir="data"/>
27 </copy>
[15763]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/index.php/Cz:JOSM/Plugins/CzechAddress"/>
[26605]34 <attribute name="Plugin-Mainversion" value="4394"/>
[15829]35 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
[15763]36 </manifest>
[15166]37 </target>
[15763]38 <target name="dist" depends="compile">
[26174]39 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
[15763]40 </target>
[15707]41 <target name="revision">
42 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
43 <env key="LANG" value="C"/>
44 <arg value="info"/>
45 <arg value="--xml"/>
46 <arg value="."/>
47 </exec>
[26174]48 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
[15707]49 <delete file="REVISION"/>
[15558]50 </target>
51 <target name="install" depends="dist">
52 <property environment="env"/>
[26174]53 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
54 <and>
55 <os family="windows"/>
56 </and>
[15558]57 </condition>
58 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
59 </target>
[15763]60 <target name="run" depends="compile">
61 <java classname="JOSM" fork="true">
62 <jvmarg value="-Xmx1024m"/>
63 <jvmarg value="-Xdebug"/>
64 <jvmarg value="-ea"/>
[22812]65 <jvmarg value="-Djava.net.useSystemProxies=true"/>
[15763]66 <classpath>
67 <pathelement location="${plugin.build.dir}"/>
68 <pathelement path="${java.class.path}"/>
69 </classpath>
70 <classpath>
71 <pathelement location="${josm}"/>
72 <pathelement path="${java.class.path}"/>
73 </classpath>
74 </java>
75 </target>
[26174]76 <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans">
[18892]77 <fail unless="netbeans.home">
78 This target can only run inside the NetBeans IDE.
79 </fail>
[15763]80 <nbprofiledirect>
[18892]81 <classpath>
82 <pathelement location="${plugin.build.dir}"/>
83 </classpath>
[15763]84 </nbprofiledirect>
85 <java classname="JOSM" fork="true">
86 <jvmarg value="${profiler.info.jvmargs.agent}"/>
87 <jvmarg value="-Xmx1024m"/>
88 <classpath>
89 <pathelement location="${plugin.build.dir}"/>
90 <pathelement path="${java.class.path}"/>
91 </classpath>
92 <classpath>
93 <pathelement location="${josm}"/>
94 <pathelement path="${java.class.path}"/>
95 </classpath>
96 </java>
97 </target>
[26174]98 <target name="debug" depends="compile" description="Debug CzechAddress with Netbeans">
99 <nbjpdastart addressproperty="jpda.address" name="czechaddress" transport="dt_socket"/>
[18892]100 <java classname="JOSM" fork="true">
101 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
102 <jvmarg value="-Xmx1024m"/>
103 <jvmarg value="-Xdebug"/>
104 <jvmarg value="-ea"/>
105 <classpath>
106 <pathelement location="${plugin.build.dir}"/>
107 <pathelement path="${java.class.path}"/>
108 </classpath>
109 <classpath>
110 <pathelement location="${josm}"/>
111 <pathelement path="${java.class.path}"/>
112 </classpath>
113 </java>
114 </target>
[15166]115</project>
Note: See TracBrowser for help on using the repository browser.