[Mulgara-svn] r338 - branches/java-1.6

pag at mulgara.org pag at mulgara.org
Sun Aug 5 16:02:04 UTC 2007


Author: pag
Date: 2007-08-05 11:02:03 -0500 (Sun, 05 Aug 2007)
New Revision: 338

Modified:
   branches/java-1.6/common.xml
Log:
merged the subversion fix

Modified: branches/java-1.6/common.xml
===================================================================
--- branches/java-1.6/common.xml	2007-08-05 01:59:50 UTC (rev 337)
+++ branches/java-1.6/common.xml	2007-08-05 16:02:03 UTC (rev 338)
@@ -186,22 +186,32 @@
     <taskdef classpathref="project-classpath" resource="axis-tasks.properties"/>
   </target>
 
-  <target name="get-svnext">
-    <condition property="svnext" value="">
-      <os family="unix"/>
+  <target name="svnversion" depends="run-svnversion">
+    <condition property="svn-version" value="${svnversion-output}">
+      <and>
+        <isset property="svnversion-output"/>
+        <not><equals arg1="${svnversion-output}" arg2="exported" trim="true"/></not>
+      </and>
     </condition>
-    <condition property="svnext" value=".exe">
-      <os family="windows"/>
-    </condition>
-    <property name="svnext" value=""/>
+    <property name="svn-version" value="local"/>
   </target>
 
-  <target name="svnversion" depends="get-svnext">
-    <exec executable="svnversion${svnext}" outputproperty="svn-version">
+  <target name="run-svnversion" depends="find-svnversion-exe" if="svnversion-exe">
+    <exec executable="${svnversion-exe}" outputproperty="svnversion-output"
+        failifexecutionfails="false">
       <arg line="."/>
     </exec>
   </target>
 
+  <target name="find-svnversion-exe">
+    <property environment="env"/>
+
+    <available file="svnversion" filepath="${env.PATH}"
+      property="svnversion-exe" value="svnversion"/>
+    <available file="svnversion.exe" filepath="${env.PATH}"
+      property="svnversion-exe" value="svnversion.exe"/>
+  </target>
+
   <!-- =================================================================== -->
   <!-- Changes Mulgara Config files Database Class depending on Resolvers   -->
   <!-- =================================================================== -->




More information about the Mulgara-svn mailing list