Changeset 2926 in osm for applications/editors/josm/plugins/namefinder
- Timestamp:
- 2007-05-18T10:59:07+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/namefinder/build.xml
r2925 r2926 1 1 <project name="namefinder" default="dist" basedir="."> 2 <property name="josm.prj.dir" value="../../josm"/> 3 <property name="josm.home.dir" value="${user.home}/.josm"/> 4 <property name="plugin.build.dir" value="build"/> 2 5 3 <fileset id="required_libs" dir="../../josm/lib"> 4 <include name="MinML2.jar"/> 5 </fileset> 6 <!-- init target --> 7 <target name="init"> 8 <mkdir dir="build" /> 9 </target> 6 10 7 <target name="dist" depends="compile"> 11 <!-- clean target --> 12 <target name="clean"> 13 <delete dir="build" /> 14 </target> 15 16 <!-- compile target --> 17 <target name="compile" depends="init"> 18 <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 19 <classpath> 20 <pathelement path="${josm.prj.dir}/bin"/> 21 <fileset dir="${josm.prj.dir}/lib"> 22 <include name="**/*.jar"/> 23 </fileset> 24 </classpath> 25 </javac> 26 </target> 8 27 9 <!-- jars --> 10 <unjar dest="build"> 11 <fileset refid="required_libs" /> 12 </unjar> 28 <!-- dist target - crate jar file --> 29 <target name="dist" depends="compile"> 30 <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}"> 31 <manifest> 32 <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" /> 33 <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" /> 34 </manifest> 35 </jar> 36 </target> 13 37 14 <!-- create josm-custom.jar --> 15 <jar destfile="namefinder.jar" basedir="build"> 16 <manifest> 17 <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" /> 18 <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" /> 19 </manifest> 20 </jar> 21 </target> 38 <!-- dist target - copy jar file to plugin destination --> 39 <target name="install" depends="dist"> 40 <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" /> 41 </target> 42 43 </project> 22 44 23 <target name="compile" depends="init">24 <javac srcdir="namefinder" classpath="../../josm/build/:../../josm/lib/MinML2.jar" destdir="build" />25 </target>26 27 <target name="init">28 <mkdir dir="build" />29 </target>30 31 <target name="clean">32 <delete dir="build" />33 </target>34 35 </project>
Note:
See TracChangeset
for help on using the changeset viewer.