[version] write config/instance.revision file wihtin the core obx file
authorAsier Lostalé <asier.lostale@openbravo.com>
Mon, 06 Jul 2009 15:52:08 +0200
changeset 4280 a2f6c1f8d4fb
parent 4279 959b1cd36773
child 4281 6f4923e63e85
[version] write config/instance.revision file wihtin the core obx file
build.xml
--- a/build.xml	Mon Jul 06 15:01:12 2009 +0200
+++ b/build.xml	Mon Jul 06 15:52:08 2009 +0200
@@ -853,7 +853,7 @@
     <chmod file="config/setup-properties-${osname}${osarch}.${bin.ext}" perm="+x" />
   </target>
 
-  <target name="package.core" depends="set.version.number">
+  <target name="package.core" depends="init, set.version.number">
 	<property name="tmpdir" value="${java.io.tmpdir}/ob.core${core.rev}" />
    
   	<exec executable="hg" >
@@ -866,6 +866,8 @@
                    replace="\1${core.rev}\3"
                    byline="true"/>
     
+    <echo message="${hg.id}" file="${tmpdir}/config/instance.revision"/>
+    
     <zip destfile="${basedir}/core-${core.rev}.obx" basedir="${tmpdir}"/>
     
     <delete dir="${tmpdir}"/>