bodewig 2003/06/23 04:54:14 Modified: . patch.xml Log: Throw in copyright year check as well (you knew I'd do that, no? 8-). Revision Changes Path 1.5 +5 -1 ant/patch.xml Index: patch.xml =================================================================== RCS file: /home/cvs/ant/patch.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- patch.xml 4 Jun 2003 13:55:00 -0000 1.4 +++ patch.xml 23 Jun 2003 11:54:14 -0000 1.5 @@ -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">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]