Changeset 5153 in osm for applications/editors/josm/plugins/ywms
- Timestamp:
- 2007-10-24T20:13:09+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ywms/build.xml
r5147 r5153 1 <project name="ywms" default="build" basedir="."> 2 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 1 <project name="ywms" default="dist" basedir="."> 6 2 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="josm" location="../../core/dist/josm-custom.jar" /> 7 <property name="plugin.build.dir" value="build"/> 8 <property name="plugin.dist.dir" value="../dist"/> 9 <property name="plugin.name" value="${ant.project.name}"/> 10 <property name="plugin.jar" value="../dist/${plugin.name}.jar"/> 7 11 8 12 <target name="init"> 9 <mkdir dir=" build"/>13 <mkdir dir="${plugin.build.dir}"/> 10 14 </target> 11 15 … … 16 20 </target> 17 21 18 <target name=" build" depends="compile">19 <copy todir=" build/resources">22 <target name="dist" depends="compile"> 23 <copy todir="${plugin.build.dir}/resources"> 20 24 <fileset dir="resources"/> 21 25 </copy> 22 <copy todir=" build/images">26 <copy todir="${plugin.build.dir}/images"> 23 27 <fileset dir="images"/> 24 28 </copy> … … 31 35 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 32 36 <delete file="REVISION"/> 33 <jar destfile=" ywms.jar" basedir="build">37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 34 38 <manifest> 35 39 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/> … … 43 47 44 48 <target name="clean"> 45 <delete dir="build" /> 49 <delete dir="${plugin.build.dir}" /> 50 <delete file="${plugin.jar}" /> 46 51 </target> 47 48 <target name="install" depends=" build">49 <copy file=" ywms.jar" todir="${user.home}/.josm/plugins"/>52 53 <target name="install" depends="dist"> 54 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 50 55 </target> 51 56
Note:
See TracChangeset
for help on using the changeset viewer.