Changeset 5153 in osm for applications/editors/josm/plugins/duplicateway
- Timestamp:
- 2007-10-24T20:13:09+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/duplicateway/build.xml
r5147 r5153 1 <project name="Duplicate-Way" default=" jar" basedir=".">1 <project name="Duplicate-Way" default="dist" basedir="."> 2 2 3 <property name="josm" location="../../core/dist/josm-custom.jar" /> 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"/> 11 12 <target name="init"> 13 <mkdir dir="${plugin.build.dir}"/> 14 </target> 4 15 5 <target name="compile" depends="clean"> 16 17 <target name="compile" depends="init"> 6 18 <mkdir dir="build"></mkdir> 7 <mkdir dir=" build/images"></mkdir>19 <mkdir dir="${plugin.build.dir}/images"></mkdir> 8 20 <copy todir="build"> 9 <fileset dir=" bin" casesensitive="yes">21 <fileset dir="${plugin.build.dir}" casesensitive="yes"> 10 22 <filename name="**/*.class"/> 11 23 </fileset> 12 24 </copy> 13 <copy todir=" build/images">25 <copy todir="${plugin.build.dir}/images"> 14 26 <fileset dir="images" casesensitive="yes"> 15 27 <filename name="**/*.png"/> … … 18 30 </target> 19 31 20 <target name=" jar" depends="compile">21 <jar destfile=" Duplicate-Way.jar" basedir="build">32 <target name="dist" depends="compile"> 33 <jar destfile="${plugin.jar}" basedir="build"> 22 34 <manifest> 23 35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" /> … … 30 42 31 43 <target name="clean"> 32 <delete dir=" build" />33 <delete file=" Duplicate-Way.jar" />44 <delete dir="${plugin.build.dir}" /> 45 <delete file="${plugin.jar}" /> 34 46 </target> 35 47 36 <target name="install" depends=" jar">37 <copy file=" Duplicate-Way.jar" todir="${user.home}/.josm/plugins"/>48 <target name="install" depends="dist"> 49 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 38 50 </target> 39 51
Note:
See TracChangeset
for help on using the changeset viewer.