harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r430066 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml
Date Wed, 09 Aug 2006 14:49:56 GMT
Author: tellison
Date: Wed Aug  9 07:49:55 2006
New Revision: 430066

URL: http://svn.apache.org/viewvc?rev=430066&view=rev
Log:
Provide a more useful default for svn info

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml?rev=430066&r1=430065&r2=430066&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/build.xml Wed Aug  9 07:49:55 2006
@@ -267,11 +267,7 @@
         </javac>
     </target>
 
-    <target name="-svn-detect">
-      <available file=".svn" type="dir" property="svn.available"/>
-    </target>
-
-    <target name="-svn-prop" depends="-svn-detect" if="svn.available">
+    <target name="-svn-prop">
         <exec executable="svn" failifexecutionfails="false">
             <arg value="info" />
             <redirector outputproperty="svn.info">
@@ -289,8 +285,10 @@
         </exec>
     </target>
 
-    <target name="-nosvn-prop" depends="-svn-detect" unless="svn.available">
-        <property name="svn.info" value ="Unknown"/>
+    <target name="-nosvn-prop">
+        <tstamp>
+            <format property="svn.info" pattern="'Unknown revision built at' dd-MMM-yyyy
hh:mm aa"/>
+        </tstamp>
     </target>
 
     <target name="build.jar" depends="-svn-prop, -nosvn-prop">



Mime
View raw message