Browse Source

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
master
Stefan Bodewig 22 years ago
parent
commit
3bf1a4ed37
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      patch.xml

+ 5
- 1
patch.xml View File

@@ -30,6 +30,9 @@
<delete file="${patch.package}"/> <delete file="${patch.package}"/>
<cvs command="-q diff -N" output="${patch.file}.tmp"/> <cvs command="-q diff -N" output="${patch.file}.tmp"/>
<replace file="${patch.file}.tmp" token="? " value=""/> <replace file="${patch.file}.tmp" token="? " value=""/>
<tstamp>
<format property="year" pattern="yyyy"/>
</tstamp>
<fileset dir="${basedir}" <fileset dir="${basedir}"
includesfile="${patch.file}.tmp" includesfile="${patch.file}.tmp"
excludes="${patch.file}.tmp,${patch.file}" excludes="${patch.file}.tmp,${patch.file}"
@@ -38,6 +41,7 @@
<and> <and>
<contains text="Copyright"/> <contains text="Copyright"/>
<contains text="Apache Software Foundation"/> <contains text="Apache Software Foundation"/>
<contains text="${year}"/>
</and> </and>
</not> </not>
</fileset> </fileset>
@@ -46,7 +50,7 @@
property="no.copyright" property="no.copyright"
refid="no.copyright.set"/> refid="no.copyright.set"/>
<fail if="no.copyright" <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>


<target name="patchpackage" depends="newfiles"> <target name="patchpackage" depends="newfiles">


Loading…
Cancel
Save