summaryrefslogtreecommitdiff
path: root/patch.xml
diff options
context:
space:
mode:
authorMagesh Umasankar <umagesh@apache.org>2003-06-04 13:43:48 +0000
committerMagesh Umasankar <umagesh@apache.org>2003-06-04 13:43:48 +0000
commite7113e29d09c89bdba7cd0e1ccbc5576f18b3759 (patch)
tree99d9c07cfbb94018f6467abb67fa14fe89fd5a9b /patch.xml
parentb1eae8e54c04812830ebc4ca8c2276b5e12833a9 (diff)
downloadant-e7113e29d09c89bdba7cd0e1ccbc5576f18b3759.tar.gz
Remind submitters to include the ASF copyright on new files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274646 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'patch.xml')
-rw-r--r--patch.xml26
1 files changed, 21 insertions, 5 deletions
diff --git a/patch.xml b/patch.xml
index dd304691a..3aa66ddce 100644
--- a/patch.xml
+++ b/patch.xml
@@ -15,11 +15,11 @@
<property name="patch.file" value="patch.txt"/>
<condition property="cvs.found">
- <or>
- <available file="cvs" filepath="${env.PATH}"/>
- <available file="cvs.exe" filepath="${env.PATH}"/>
- <available file="cvs.exe" filepath="${env.Path}"/>
- </or>
+ <or>
+ <available file="cvs" filepath="${env.PATH}"/>
+ <available file="cvs.exe" filepath="${env.PATH}"/>
+ <available file="cvs.exe" filepath="${env.Path}"/>
+ </or>
</condition>
<target name="createpatch" if="cvs.found">
@@ -30,6 +30,22 @@
<delete file="${patch.package}"/>
<cvs command="-q diff -N" output="${patch.file}.tmp"/>
<replace file="${patch.file}.tmp" token="? " value=""/>
+ <fileset dir="${basedir}"
+ includesfile="${patch.file}.tmp"
+ id="no.copyright.set">
+ <not>
+ <and>
+ <contains text="Copyright"/>
+ <contains text="Apache Software Foundation"/>
+ </and>
+ </not>
+ </fileset>
+ <pathconvert pathsep="${line.separator}"
+ setonempty="false"
+ property="no.copyright"
+ refid="no.copyright.set"/>
+ <fail if="no.copyright"
+ message="Please assign the Apache Ant Copyright to these files and retry:${line.separator}${no.copyright}"/>
</target>
<target name="patchpackage" depends="newfiles">