diff 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
line wrap: on
line diff
--- a/build.xml	Wed Jul 20 16:06:33 2011 +0200
+++ b/build.xml	Wed Jul 20 16:17:16 2011 +0200
@@ -32,7 +32,7 @@
     </exec>
   </target>
 
-  <target name="init" depends="revision">
+  <target name="init">
     <!-- create the time stamp -->
     <tstamp/>
     <!-- create the build directory structure used by compile -->
@@ -59,7 +59,7 @@
     </copy>
   </target>
 
-  <target name="jar" depends="compile">
+  <target name="jar" depends="compile,revision">
     <mkdir dir="${dist.dir}" />
     <jar jarfile="${dist.dir}/mxd2map-${hash}.jar" compress="true" basedir="${class.dir}">
       <manifest>
@@ -69,6 +69,16 @@
     </jar>
   </target>
 
+  <target name="jar-norevision" depends="compile">
+    <mkdir dir="${dist.dir}" />
+    <jar jarfile="${dist.dir}/mxd2map.jar" compress="true" basedir="${class.dir}">
+      <manifest>
+        <attribute name="Main-Class" value="de.intevation.mxd.Converter"/>
+	<attribute name="Class-Path" value="lib/log4j-1.2.16.jar lib/mapscript.jar lib/jargs.jar"/>
+      </manifest>
+    </jar>
+  </target>
+
   <target name="usage">
     <echo message="Execute 'ant -projecthelp' for the build file help"/>
     <echo message="Execute 'ant -help' for Ant help"/>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)