build.xml
changeset 812 cdac95bc56e3
parent 757 5b2ff4ffd778
child 879 520f6bbb86e3
--- a/build.xml	Tue May 06 00:15:41 2008 +0000
+++ b/build.xml	Tue May 06 07:14:07 2008 +0000
@@ -122,11 +122,25 @@
       <include name="openbravo-wad.jar"/>
     </fileset>
   </path>
-
+  
   <target name="init">
     <fail if="no.java.home" message="The environment variable JAVA_HOME is not set."/>
   </target>
 
+ 
+ <target name="code.rev">
+  <loadfile property="svn.entries" srcFile=".svn/entries" failonerror="false">
+    <filterchain>
+      <filterreader classname="org.apache.tools.ant.filters.HeadFilter">
+        <param name="skip" value="3"/>
+        <param name="lines" value="1"/>
+      </filterreader>
+    </filterchain>
+  </loadfile>
+  <property name="code.revision" value="${svn.entries}" />
+ </target>
+
+
   <target name="compile.complete" depends="init">
     <ant dir="${base.src}" target="compile.complete" inheritAll="true" inheritRefs="true"/>
   </target>
@@ -248,7 +262,7 @@
     <antcall target="compile.complete"/>
   </target>
 
-  <target name="create.database" depends="init">
+  <target name="create.database" depends="init,code.rev">
     <antcall target="database.lib"/>
     <ant dir="${base.db}" target="create.database" inheritAll="true" inheritRefs="true"/>
   </target>