Changeset 13457 in osm for applications
- Timestamp:
- 2009-01-31T14:53:20+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/build.xml
r12780 r13457 1 1 <project name="utilsplugin" default="dist" basedir="."> 2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> 3 <property environment="env"/> 4 <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> 5 <and> 6 <os family="windows"/> 7 </and> 8 </condition> 9 <!-- compilation properties --> 10 <property name="josm.build.dir" value="../../core"/> 11 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> 13 <property name="plugin.build.dir" value="build"/> 14 <property name="plugin.dist.dir" value="../../dist"/> 15 <property name="plugin.name" value="${ant.project.name}"/> 16 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar" /> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 17 6 <property name="ant.build.javac.target" value="1.5"/> 18 7 <target name="init"> 19 <mkdir dir=" build"/>8 <mkdir dir="${plugin.build.dir}"/> 20 9 </target> 21 10 <target name="compile" depends="init"> 22 11 <echo message="creating ${plugin.jar}"/> 23 <javac srcdir="src" classpath="${josm}" destdir=" build" debug="true">12 <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true"> 24 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 25 15 </javac> 26 16 </target> 27 <target name="dist" depends="c lean, compile">28 <copy todir=" build/images">17 <target name="dist" depends="compile"> 18 <copy todir="${plugin.build.dir}/images"> 29 19 <fileset dir="images"/> 30 20 </copy> … … 37 27 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 38 28 <delete file="REVISION"/> 39 <jar destfile="${plugin.jar}" basedir=" build">29 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 40 30 <manifest> 41 31 <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/> 42 32 <attribute name="Plugin-Description" value="Useful JOSM utilities"/> 43 33 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 44 <attribute name="Plugin-Mainversion" value="1 180"/>34 <attribute name="Plugin-Mainversion" value="1350"/> 45 35 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 46 <attribute name="Author" 47 value="(originally) Martijn van Oosterhout >kleptog@svana.org>"/> 36 <attribute name="Author" value="Martijn van Oosterhout"/> 48 37 </manifest> 49 38 </jar> … … 53 42 <delete file="${plugin.jar}" /> 54 43 </target> 55 <target name="install" depends="dist">56 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>57 </target>58 44 </project>
Note:
See TracChangeset
for help on using the changeset viewer.