diff options
author | Stefan Bodewig <bodewig@apache.org> | 2003-06-23 11:54:14 +0000 |
---|---|---|
committer | Stefan Bodewig <bodewig@apache.org> | 2003-06-23 11:54:14 +0000 |
commit | 3bf1a4ed37407de912eb3513883740620abdbcfe (patch) | |
tree | e5a25696b054e98cde028803f106d3c96c1ec421 /patch.xml | |
parent | 3d4065270eebe6045ade42bd142822a18e68acb9 (diff) | |
download | ant-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.xml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"> |