build.xml
changeset 903 0ce6e1b8e53f
parent 879 520f6bbb86e3
child 905 40b6c5195307
--- a/build.xml	Wed May 14 13:43:16 2008 +0000
+++ b/build.xml	Wed May 14 14:14:38 2008 +0000
@@ -136,8 +136,15 @@
         <param name="lines" value="1"/>
       </filterreader>
     </filterchain>
+  	<filterchain>
+      <filterreader classname="org.apache.tools.ant.filters.StripLineBreaks" />
+    </filterchain>
   </loadfile>
-  <property name="code.revision" value="${svn.entries}" />
+  <condition property="code.revision" value="${svn.entries}" else ="0">
+  	<and>
+      <isset property="svn.entries" />
+  	</and>
+  </condition>    
  </target>
 
 
@@ -287,16 +294,16 @@
     <ant dir="${base.db}" target="update.database.script" inheritAll="true" inheritRefs="true"/>
   </target>
 
-  <target name="export.database" depends="init">
+  <target name="export.database" depends="init,code.rev">
     <ant dir="${base.db}" target="export.database.structure" inheritAll="true" inheritRefs="true"/>
     <ant dir="${base.db}" target="export.database.data" inheritAll="true" inheritRefs="true"/>
   </target>
 
-  <target name="export.database.structure" depends="init">
+  <target name="export.database.structure" depends="init,code.rev">
     <ant dir="${base.db}" target="export.database.structure" inheritAll="true" inheritRefs="true"/>
   </target>
 
-  <target name="export.database.data" depends="init">
+  <target name="export.database.data" depends="init,code.rev">
     <ant dir="${base.db}" target="export.database.data" inheritAll="true" inheritRefs="true"/>
   </target>
 
@@ -304,7 +311,7 @@
     <ant dir="${base.db}" target="import.database.data" inheritAll="true" inheritRefs="true"/>
   </target>
 
-  <target name="export.database.sampledata" depends="init">
+  <target name="export.database.sampledata" depends="init,code.rev">
     <ant dir="${base.db}" target="export.database.sampledata" inheritAll="true" inheritRefs="true"/>
   </target>
 
@@ -312,7 +319,7 @@
     <ant dir="${base.db}" target="import.database.sampledata" inheritAll="true" inheritRefs="true"/>
   </target>
 
-  <target name="export.database.masterdata" depends="init">
+  <target name="export.database.masterdata" depends="init,code.rev">
     <ant dir="${base.db}" target="export.database.masterdata" inheritAll="true" inheritRefs="true"/>
   </target>