diff build.xml @ 178:d10d5f560b1a

Renamed executable jar file.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 07 Jul 2011 16:33:21 +0200
parents 707f13cfba74
children 8ced5ff9113d
line wrap: on
line diff
--- a/build.xml	Thu Jul 07 15:05:08 2011 +0200
+++ b/build.xml	Thu Jul 07 16:33:21 2011 +0200
@@ -25,7 +25,14 @@
   <!-- ========================================= -->
   <!-- private targets -->
   <!-- ========================================= -->
-  <target name="init">
+  <target name="revision">
+    <property name="current" value="parent"/>
+    <exec executable="hg" outputproperty="hash">
+	    <arg line="${current} --template '{node|short}'"/>
+    </exec>
+  </target>
+
+  <target name="init" depends="revision">
     <!-- create the time stamp -->
     <tstamp/>
     <!-- create the build directory structure used by compile -->
@@ -54,7 +61,7 @@
 
   <target name="jar" depends="compile">
     <mkdir dir="${dist.dir}" />
-    <jar jarfile="${dist.dir}/${sample.dir}.jar" compress="true" basedir="${class.dir}">
+    <jar jarfile="${dist.dir}/mxd2map-${hash}.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/arcobjects.jar lib/jargs.jar"/>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)