forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/tools/targets patch.xml
Date Sat, 18 Oct 2003 10:59:52 GMT
nicolaken    2003/10/18 03:59:52

  Modified:    .        build.xml
  Added:       tools/targets patch.xml
  Removed:     src/targets patch.xml
  Log:
  src/targets/patch.xml -> tools/targets/patch.xml
  
  Revision  Changes    Path
  1.80      +1 -1      xml-forrest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/build.xml,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- build.xml	17 Oct 2003 15:42:35 -0000	1.79
  +++ build.xml	18 Oct 2003 10:59:52 -0000	1.80
  @@ -611,7 +611,7 @@
     <!-- Use Apache Ant to generate a patch file                             -->
     <!-- =================================================================== -->
       <target name="patch">
  -      <ant antfile="src/targets/patch.xml" target="patchpackage"/>
  +      <ant antfile="tools/targets/patch.xml" target="patchpackage"/>
       </target>
   
   
  
  
  
  1.1                  xml-forrest/tools/targets/patch.xml
  
  Index: patch.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
    =======================================================================
     Use Apache Ant to generate a patch file for Apache Forrest.
  
     Copyright (c) 2003 The Apache Software Foundation.  All rights
     reserved.
  
    =======================================================================
  -->
  <project name="create-patch" default="patchpackage" basedir=".">
      <property environment="env"/>
      <property name="patch.package" value="patch.tar.gz"/>
      <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>
      </condition>
  
      <target name="createpatch">
          <fail unless="cvs.found"
                message="You need a version of cvs to create the patch"/>
          <cvs command="-q diff -u" output="${patch.file}"/>
      </target>
  
      <target name="newfiles" depends="createpatch">
          <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}"
              id="no.copyright.set">
              <not>
                  <and>
                      <contains text="Copyright"/>
                      <contains text="Apache Software Foundation"/>
                      <contains text="${year}"/>
                  </and>
              </not>
          </fileset>
          <pathconvert pathsep="${line.separator}"
              setonempty="false"
              property="no.copyright"
              refid="no.copyright.set"/>
              <!-- Commented out until someone decides if we need Copyright in all forrest
pages
  	    <fail if="no.copyright"
              message="Please assign the Apache Copyright (for ${year}) to these files and
retry:${line.separator}${no.copyright}"/>
  	    -->
      </target>
  
      <target name="patchpackage" depends="newfiles">
          <tar basedir="${basedir}"
              tarfile="${patch.package}"
              compression="gzip"
              includesfile="${patch.file}.tmp"
              excludes="${patch.file}.tmp"/>
          <delete file="${patch.file}.tmp"/>
      </target>
  </project>
  
  
  

Mime
View raw message