Changeset 28807 in osm for applications/editors/josm/plugins/wms-turbo-challenge2
- Timestamp:
- 2012-10-14T15:25:54+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
r27019 r28807 10 10 --> 11 11 <project name="wms-turbo-challenge2" default="dist" basedir="."> 12 <property name="josm" location="../../core/dist/josm-custom.jar"/> 13 <property name="plugin.build.dir" value="build"/> 14 <property name="plugin.src.dir" value="src"/> 15 <!-- this is the directory where the plugin jar is copied to --> 16 <property name="ant.build.javac.target" value="1.5"/> 17 <property name="plugin.dist.dir" value="../../dist"/> 18 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 12 13 <!-- enter the SVN commit message --> 14 <property name="commit.message" value="Commit message"/> 15 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 16 <property name="plugin.main.version" value="4549"/> 17 19 18 <!-- 20 19 ********************************************************** 21 ** in it - initializes the build20 ** include targets that all plugins have in common 22 21 ********************************************************** 23 22 --> 24 <target name="init"> 25 <mkdir dir="${plugin.build.dir}"/> 26 </target> 27 <!-- 28 ********************************************************** 29 ** compile - compiles the source tree 30 ********************************************************** 31 --> 32 <target name="compile" depends="init"> 33 <echo message="compiling sources for ${plugin.jar} ... "/> 34 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 35 <compilerarg value="-Xlint:deprecation"/> 36 <compilerarg value="-Xlint:unchecked"/> 37 </javac> 38 </target> 23 <import file="../build-common.xml"/> 24 39 25 <!-- 40 26 ********************************************************** … … 67 53 <attribute name="Plugin-Icon" value="images/wmsracer.png"/> 68 54 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/> 69 <attribute name="Plugin-Mainversion" value=" 4549"/>55 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 70 56 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 71 57 </manifest> 72 58 </jar> 73 59 </target> 74 <!--75 **********************************************************76 ** revision - extracts the current revision number for the77 ** file build.number and stores it in the XML property78 ** version.*79 **********************************************************80 -->81 <target name="revision">82 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">83 <env key="LANG" value="C"/>84 <arg value="info"/>85 <arg value="--xml"/>86 <arg value="."/>87 </exec>88 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>89 <delete file="REVISION"/>90 </target>91 <!--92 **********************************************************93 ** clean - clean up the build environment94 **********************************************************95 -->96 <target name="clean">97 <delete dir="${plugin.build.dir}"/>98 <delete file="${plugin.jar}"/>99 </target>100 <!--101 **********************************************************102 ** install - install the plugin in your local JOSM installation103 **********************************************************104 -->105 <target name="install" depends="dist">106 <property environment="env"/>107 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">108 <and>109 <os family="windows"/>110 </and>111 </condition>112 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>113 </target>114 60 </project>
Note:
See TracChangeset
for help on using the changeset viewer.