summaryrefslogtreecommitdiff
path: root/patch.xml
diff options
context:
space:
mode:
authorAntoine Levy-Lambert <antoine@apache.org>2005-11-21 20:13:48 +0000
committerAntoine Levy-Lambert <antoine@apache.org>2005-11-21 20:13:48 +0000
commit6022d6715dbed4d423ac902125c3c91d8c8f225e (patch)
tree698d34f08aebac4f3d145ad0a01856264b5add79 /patch.xml
parent88b67c99d13aa8919d92ebb7c9eaa9c824d089e9 (diff)
downloadant-6022d6715dbed4d423ac902125c3c91d8c8f225e.tar.gz
first step to adapt this file to svn
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@347967 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'patch.xml')
-rw-r--r--patch.xml22
1 files changed, 13 insertions, 9 deletions
diff --git a/patch.xml b/patch.xml
index c8907f728..f1ed219ad 100644
--- a/patch.xml
+++ b/patch.xml
@@ -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>