Changeset 12780 in osm for applications/editors/josm/plugins/grid
- Timestamp:
- 2009-01-01T18:55:45+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/grid/build.xml
r7287 r12780 1 1 <project name="grid" default="dist" basedir="."> 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"/> 11 12 13 <!-- point to your JOSM directory --> 14 <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" /> 15 16 <property name="ant.build.javac.target" value="1.5"/> 17 18 <target name="init"> 19 <mkdir dir="build"></mkdir> 20 <mkdir dir="dist"></mkdir> 21 </target> 22 23 <target name="compile" depends="init"> 24 <echo message="creating ${plugin.jar}"/> 25 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 26 <include name="**/*.java" /> 27 </javac> 28 </target> 29 30 <target name="dist" depends="compile"> 31 <copy todir="build/images" > 32 <fileset dir="images" /> 33 </copy> 34 <jar destfile="${plugin.jar}" basedir="build"> 35 <manifest> 36 <attribute name="Plugin-Class" value="grid.GridPlugin" /> 37 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" /> 38 </manifest> 39 </jar> 40 </target> 41 42 <target name="clean"> 43 <delete dir="${plugin.build.dir}" /> 44 <delete file="${plugin.jar}" /> 45 </target> 46 47 <target name="install" depends="dist"> 48 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 49 </target> 50 51 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="josm" location="../../core/dist/josm-custom.jar" /> 6 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../../dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 10 <!-- point to your JOSM directory --> 11 <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" /> 12 <property name="ant.build.javac.target" value="1.5"/> 13 <target name="init"> 14 <mkdir dir="build"></mkdir> 15 <mkdir dir="dist"></mkdir> 16 </target> 17 <target name="compile" depends="init"> 18 <echo message="creating ${plugin.jar}"/> 19 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 20 <include name="**/*.java" /> 21 </javac> 22 </target> 23 <target name="dist" depends="compile"> 24 <copy todir="build/images" > 25 <fileset dir="images" /> 26 </copy> 27 <jar destfile="${plugin.jar}" basedir="build"> 28 <manifest> 29 <attribute name="Plugin-Class" value="grid.GridPlugin" /> 30 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" /> 31 </manifest> 32 </jar> 33 </target> 34 <target name="clean"> 35 <delete dir="${plugin.build.dir}" /> 36 <delete file="${plugin.jar}" /> 37 </target> 38 <target name="install" depends="dist"> 39 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 40 </target> 52 41 </project>
Note:
See TracChangeset
for help on using the changeset viewer.