ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r347967 - /ant/core/trunk/patch.xml
Date Mon, 21 Nov 2005 20:13:56 GMT
Author: antoine
Date: Mon Nov 21 12:13:48 2005
New Revision: 347967

URL: http://svn.apache.org/viewcvs?rev=347967&view=rev
Log:
first step to adapt this file to svn

Modified:
    ant/core/trunk/patch.xml

Modified: ant/core/trunk/patch.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/patch.xml?rev=347967&r1=347966&r2=347967&view=diff
==============================================================================
--- ant/core/trunk/patch.xml (original)
+++ ant/core/trunk/patch.xml Mon Nov 21 12:13:48 2005
@@ -14,24 +14,28 @@
     <property name="patch.package" value="patch.tar.gz"/>
     <property name="patch.file" value="patch.txt"/>
 
-    <condition property="cvs.found">
+    <condition property="svn.found">
         <or>
-            <available file="cvs" filepath="${env.PATH}"/>
-            <available file="cvs.exe" filepath="${env.PATH}"/>
-            <available file="cvs.exe" filepath="${env.Path}"/>
+            <available file="svn" filepath="${env.PATH}"/>
+            <available file="svn.exe" filepath="${env.PATH}"/>
+            <available file="svn.exe" filepath="${env.Path}"/>
         </or>
     </condition>
 
     <target name="createpatch">
-        <fail unless="cvs.found"
-              message="You need a version of cvs to create the patch"/>
-        <cvs command="-q diff -u" output="${patch.file}"/>
+        <fail unless="svn.found"
+              message="You need a version of svn to create the patch"/>
+        <exec executable="svn" output="${patch.file}">
+            <arg value="diff"/>
+        </exec>
     </target>
 
     <target name="newfiles" depends="createpatch">
         <delete file="${patch.package}"/>
-        <cvs command="-q diff -N" output="${patch.file}.tmp"/>
-        <replace file="${patch.file}.tmp" token="? " value=""/>
+        <exec executable="svn" output="${patch.file}.tmp">
+            <arg value="status"/>
+        </exec>
+        <replace file="${patch.file}.tmp" token="?      " value=""/>
         <tstamp>
             <format property="year" pattern="yyyy"/>
         </tstamp>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message