summaryrefslogtreecommitdiff
path: root/patch.xml
diff options
context:
space:
mode:
authorStefan Bodewig <bodewig@apache.org>2003-06-23 11:54:14 +0000
committerStefan Bodewig <bodewig@apache.org>2003-06-23 11:54:14 +0000
commit3bf1a4ed37407de912eb3513883740620abdbcfe (patch)
treee5a25696b054e98cde028803f106d3c96c1ec421 /patch.xml
parent3d4065270eebe6045ade42bd142822a18e68acb9 (diff)
downloadant-3bf1a4ed37407de912eb3513883740620abdbcfe.tar.gz
Throw in copyright year check as well (you knew I'd do that, no? 8-).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'patch.xml')
-rw-r--r--patch.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/patch.xml b/patch.xml
index 96155bdbd..4b8e4457d 100644
--- a/patch.xml
+++ b/patch.xml
@@ -30,6 +30,9 @@
<delete file="${patch.package}"/>
<cvs command="-q diff -N" output="${patch.file}.tmp"/>
<replace file="${patch.file}.tmp" token="? " value=""/>
+ <tstamp>
+ <format property="year" pattern="yyyy"/>
+ </tstamp>
<fileset dir="${basedir}"
includesfile="${patch.file}.tmp"
excludes="${patch.file}.tmp,${patch.file}"
@@ -38,6 +41,7 @@
<and>
<contains text="Copyright"/>
<contains text="Apache Software Foundation"/>
+ <contains text="${year}"/>
</and>
</not>
</fileset>
@@ -46,7 +50,7 @@
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}"/>
+ message="Please assign the Apache Ant Copyright (for ${year}) to these files and retry:${line.separator}${no.copyright}"/>
</target>
<target name="patchpackage" depends="newfiles">