comparison build.xml @ 193:8ced5ff9113d

Added target "jar-norevision" to create a jar file without the revision hash.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 16:17:16 +0200
parents d10d5f560b1a
children 6b80e46b8f38
comparison
equal deleted inserted replaced
192:0dc34dcdaedc 193:8ced5ff9113d
30 <exec executable="hg" outputproperty="hash"> 30 <exec executable="hg" outputproperty="hash">
31 <arg line="${current} --template '{node|short}'"/> 31 <arg line="${current} --template '{node|short}'"/>
32 </exec> 32 </exec>
33 </target> 33 </target>
34 34
35 <target name="init" depends="revision"> 35 <target name="init">
36 <!-- create the time stamp --> 36 <!-- create the time stamp -->
37 <tstamp/> 37 <tstamp/>
38 <!-- create the build directory structure used by compile --> 38 <!-- create the build directory structure used by compile -->
39 <mkdir dir="${build.dir}"/> 39 <mkdir dir="${build.dir}"/>
40 <mkdir dir="${class.dir}"/> 40 <mkdir dir="${class.dir}"/>
57 <copy todir="${class.dir}"> 57 <copy todir="${class.dir}">
58 <fileset dir="${src.dir}" includes="**/icons/*" /> 58 <fileset dir="${src.dir}" includes="**/icons/*" />
59 </copy> 59 </copy>
60 </target> 60 </target>
61 61
62 <target name="jar" depends="compile"> 62 <target name="jar" depends="compile,revision">
63 <mkdir dir="${dist.dir}" /> 63 <mkdir dir="${dist.dir}" />
64 <jar jarfile="${dist.dir}/mxd2map-${hash}.jar" compress="true" basedir="${class.dir}"> 64 <jar jarfile="${dist.dir}/mxd2map-${hash}.jar" compress="true" basedir="${class.dir}">
65 <manifest> 65 <manifest>
66 <attribute name="Main-Class" value="de.intevation.mxd.Converter"/> 66 <attribute name="Main-Class" value="de.intevation.mxd.Converter"/>
67 <attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/arcobjects.jar lib/jargs.jar"/> 67 <attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/arcobjects.jar lib/jargs.jar"/>
68 </manifest>
69 </jar>
70 </target>
71
72 <target name="jar-norevision" depends="compile">
73 <mkdir dir="${dist.dir}" />
74 <jar jarfile="${dist.dir}/mxd2map.jar" compress="true" basedir="${class.dir}">
75 <manifest>
76 <attribute name="Main-Class" value="de.intevation.mxd.Converter"/>
77 <attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/jargs.jar"/>
68 </manifest> 78 </manifest>
69 </jar> 79 </jar>
70 </target> 80 </target>
71 81
72 <target name="usage"> 82 <target name="usage">
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)