build.xml
changeset 15728 cd0c49fbd501
parent 15522 459c8c6700f5
child 16118 bc914387cb25
--- a/build.xml	Mon Mar 05 13:44:27 2012 +0100
+++ b/build.xml	Fri Mar 02 10:57:07 2012 +0100
@@ -1066,11 +1066,18 @@
       <arg value="id"/>
       <arg value="-n"/>
     </exec>
-    <taskdef name="CoreRevision" classname="org.openbravo.erpCommon.utility.CalculateCoreRevision">
-            <classpath refid="project.class.path" />
-          </taskdef>
-
-    <CoreRevision hgRevNo="${hg.idno}" revision="core.rev"/>
+        <propertyfile file="currentRevision.tmp">
+          <entry key="core.rev" value="3.0.${hg.idno}"/>
+        </propertyfile>
+        <replaceregexp file="currentRevision.tmp"
+                       match="\+"
+                       replace=""
+                       byline="true"
+        />
+        <loadproperties> 
+          <file file="currentRevision.tmp"/> 
+        </loadproperties>
+        <delete file="currentRevision.tmp"/>
   </target>
   
   <target name="set.version.from.file" if="xml.core.rev">