Changeset 32306 in osm for applications/editors/josm/plugins/czechaddress
- Timestamp:
- 2016-06-18T03:37:43+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/build.xml
r31923 r32306 1 1 <?xml version="1.0" encoding="utf-8"?> 2 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.7"/> 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}" includeantruntime="false"> 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="https://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="7001"/> 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}" manifestencoding="UTF-8" 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> 3 4 <!-- enter the SVN commit message --> 5 <property name="commit.message" value="Commit message"/> 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="7001"/> 8 9 <!-- Configure these properties (replace "..." accordingly). 10 See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins 11 --> 12 <property name="plugin.author" value="Radomír Černoch"/> 13 <property name="plugin.class" value="org.openstreetmap.josm.plugins.czechaddress.CzechAddressPlugin"/> 14 <property name="plugin.description" value="Creating and handling address nodes and buildings within Czech Republic."/> 15 <property name="plugin.icon" value="images/preferences/czech_flag.png"/> 16 <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/CS:JOSM/Plugins/CzechAddress"/> 17 <!--<property name="plugin.early" value="..."/>--> 18 <!--<property name="plugin.requires" value="..."/>--> 19 <!--<property name="plugin.stage" value="..."/>--> 20 21 <!-- ** include targets that all plugins have in common ** --> 22 <import file="../build-common.xml"/> 23 116 24 </project>
Note:
See TracChangeset
for help on using the changeset viewer.