Changeset 26174 in osm for applications/editors/josm/plugins/czechaddress
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/build.xml
r25192 r26174 1 <?xml version="1.0" encoding="utf-8"?> 1 2 <project name="czechaddress" default="dist" basedir="."> 2 <property name="josm" 3 <property name="plugin.dist.dir" 4 <property name="plugin.build.dir" 5 <property name="plugin.jar" 6 <property name="plugin.manifest" 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"/> 7 8 <property name="ant.build.javac.target" value="1.5"/> 8 9 10 11 9 <target name="clean" description="Removes all build files and the plugins's jar"> 12 10 <delete dir="${plugin.build.dir}"/> 13 11 <delete file="${plugin.jar}"/> 14 12 </target> 15 16 17 18 13 <target name="init"> 19 14 <mkdir dir="${plugin.build.dir}"/> 20 15 <mkdir dir="${plugin.dist.dir}"/> 21 16 </target> 22 23 24 25 <target name="compile" depends="init,revision" 26 description="Compile the plugin and make it ready for running"> 27 28 <javac srcdir="src" 29 classpath="${josm}" 30 debug="true" 31 encoding="utf8" 32 destdir="${plugin.build.dir}"> 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}"> 33 19 <compilerarg value="-Xlint:deprecation"/> 34 20 <compilerarg value="-Xlint:unchecked"/> 35 21 </javac> 36 37 22 <copy todir="${plugin.build.dir}/images"> 38 23 <fileset dir="images"/> 39 24 </copy> 40 25 <copy todir="${plugin.build.dir}/data"> 26 <fileset dir="data"/> 27 </copy> 41 28 <manifest file="${plugin.manifest}"> 42 29 <attribute name="Author" value="Radomír Černoch"/> … … 48 35 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 49 36 </manifest> 50 51 37 </target> 52 53 54 55 38 <target name="dist" depends="compile"> 56 <jar destfile="${plugin.jar}" 57 basedir ="${plugin.build.dir}" 58 manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/> 39 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/> 59 40 </target> 60 61 62 63 41 <target name="revision"> 64 42 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> … … 68 46 <arg value="."/> 69 47 </exec> 70 <xmlproperty file="REVISION" prefix="version" 71 keepRoot="false" collapseAttributes="true"/> 48 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 72 49 <delete file="REVISION"/> 73 50 </target> 74 75 76 77 51 <target name="install" depends="dist"> 78 52 <property environment="env"/> 79 <condition property="josm.plugins.dir" 80 value="${env.APPDATA}/JOSM/plugins"81 else="${user.home}/.josm/plugins">82 < and><os family="windows"/></and>53 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 54 <and> 55 <os family="windows"/> 56 </and> 83 57 </condition> 84 58 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 85 59 </target> 86 87 88 89 60 <target name="run" depends="compile"> 90 61 <java classname="JOSM" fork="true"> … … 103 74 </java> 104 75 </target> 105 106 107 108 <target name="profile" depends="compile" 109 description="Profile CzechAddress with Netbeans"> 76 <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans"> 110 77 <fail unless="netbeans.home"> 111 78 This target can only run inside the NetBeans IDE. … … 129 96 </java> 130 97 </target> 131 132 <target name="debug" depends="compile" 133 description="Debug CzechAddress with Netbeans"> 134 <nbjpdastart addressproperty="jpda.address" 135 name="czechaddress" 136 transport="dt_socket"/> 98 <target name="debug" depends="compile" description="Debug CzechAddress with Netbeans"> 99 <nbjpdastart addressproperty="jpda.address" name="czechaddress" transport="dt_socket"/> 137 100 <java classname="JOSM" fork="true"> 138 101 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> … … 150 113 </java> 151 114 </target> 152 153 115 </project>
Note:
See TracChangeset
for help on using the changeset viewer.