build.xml
changeset 2055 20890e6305f7
parent 2026 84de36177925
child 2056 52856de9b823
--- a/build.xml	Thu Nov 20 19:38:12 2008 +0000
+++ b/build.xml	Fri Nov 21 07:17:21 2008 +0000
@@ -145,6 +145,9 @@
       <isset property="env.JAVA_HOME"/>
     </not>
   </condition>
+	
+	<available file=".svn/entries" property="is.svn"/>
+			
 
   <path id="project.class.path">
     <pathelement path="${build}"/>
@@ -183,6 +186,13 @@
   </target>
 
   <target name="code.rev">
+  	<antcall target="set.code.rev"/>
+  	<condition property="code.revision" value="${svn.entries}" else ="0">
+  	  <isset property="svn.entries" />
+  	</condition>
+  </target>
+
+	<target name="set.code.rev" if="is.svn">
     <loadfile property="svn.entries" srcFile=".svn/entries" failonerror="false">
       <filterchain>
         <filterreader classname="org.apache.tools.ant.filters.HeadFilter">
@@ -194,12 +204,8 @@
         <filterreader classname="org.apache.tools.ant.filters.StripLineBreaks" />
       </filterchain>
     </loadfile>
-    <condition property="code.revision" value="${svn.entries}" else ="0">
-      <and>
-        <isset property="svn.entries" />
-      </and>
-    </condition>
-  </target>
+		
+	</target>
 
   <target name="compile.complete" depends="init">
     <ant dir="${base.src}" target="compile.complete" inheritAll="true" inheritRefs="true"/>