martinc     2003/01/06 21:42:56

  Modified:    .        build.xml
               contrib/scaffold build.xml
               contrib/struts-el build.xml
  Log:
  Dynamically specify the end year for JavaDoc copyright notices, so that we
  don't have to update the build script each year.
  
  Many thanks to Stefan Bodewig for the tip!
  
  Revision  Changes    Path
  1.93      +5 -1      jakarta-struts/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/build.xml,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- build.xml 6 Jan 2003 16:21:35 -0000       1.92
  +++ build.xml 7 Jan 2003 05:42:55 -0000       1.93
  @@ -255,6 +255,10 @@
           <echo message="java.home = ${java.home}"/>
           <echo message="user.home = ${user.home}"/>
   
  +        <tstamp>
  +            <format property="year" pattern="yyyy"/>
  +        </tstamp>
  +
       </target>
   
   <!--
  @@ -361,7 +365,7 @@
               version="true"
               windowtitle="Apache Struts API Documentation"
               doctitle="&lt;h1&gt;Apache Struts Framework (Version 
${project.version})&lt;/h1&gt;"
  -            bottom="Copyright &#169; 2000-2002 - Apache Software Foundation">
  +            bottom="Copyright &#169; 2000-${year} - Apache Software Foundation">
               <classpath refid="compile.classpath"/>
           </javadoc>
       </target>
  
  
  
  1.8       +5 -3      jakarta-struts/contrib/scaffold/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/scaffold/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml 12 Sep 2002 12:40:27 -0000      1.7
  +++ build.xml 7 Jan 2003 05:42:55 -0000       1.8
  @@ -50,7 +50,9 @@
   
       <!-- Check timestamp on files -->
       <target name="prepare">
  -        <tstamp/>
  +        <tstamp>
  +            <format property="year" pattern="yyyy"/>
  +        </tstamp>
       </target>
   
      <!-- Copy any resource or configuration files -->
  @@ -99,7 +101,7 @@
               version="true"
               windowtitle="${project.title} API Documentation"
               doctitle="&lt;h1&gt;${project.title} API Documentation (Version 
${project.version})&lt;/h1&gt;"
  -            bottom="Copyright &#169; 2001-2002 - Apache Software Foundation">
  +            bottom="Copyright &#169; 2001-${year} - Apache Software Foundation">
               <classpath refid="${compile.classpath}"/>
           </javadoc>
       </target>
  
  
  
  1.8       +5 -1      jakarta-struts/contrib/struts-el/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/struts-el/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml 6 Jan 2003 21:30:12 -0000       1.7
  +++ build.xml 7 Jan 2003 05:42:56 -0000       1.8
  @@ -176,6 +176,10 @@
     <echo message="user.home = ${user.home}"/>
     <echo message="struts.jar = ${struts.jar}"/>
     <echo message="struts-el.jar = ${struts-el.jar}"/>
  +
  +  <tstamp>
  +      <format property="year" pattern="yyyy"/>
  +  </tstamp>
    </target>
   
    <!-- 
  @@ -263,7 +267,7 @@
              version="true"
              windowtitle="Apache Struts-EL API Documentation"
              doctitle="&lt;h1&gt;Apache Struts-EL Framework (Version 
${project.version})&lt;/h1&gt;"
  -           bottom="Copyright &#169; 2000-2002 - Apache Software Foundation">
  +           bottom="Copyright &#169; 2000-${year} - Apache Software Foundation">
              <classpath refid="compile.classpath"/>
     </javadoc>
    </target>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to