ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: ant patch.xml
Date Wed, 04 Jun 2003 13:43:49 GMT
umagesh     2003/06/04 06:43:49

  Modified:    .        patch.xml
  Log:
  Remind submitters to include the ASF copyright on new files.
  
  Revision  Changes    Path
  1.3       +21 -5     ant/patch.xml
  
  Index: patch.xml
  ===================================================================
  RCS file: /home/cvs/ant/patch.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- patch.xml	4 Jun 2003 12:24:47 -0000	1.2
  +++ patch.xml	4 Jun 2003 13:43:48 -0000	1.3
  @@ -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">
  
  
  

Mime
View raw message