Small tweak to dynamically generate the current year for the "year" property. It was hardcoded to 2003 :)


-- Thimal Jayasooriya, Department of Computer Science, The University of York http://www.cs.york.ac.uk/~thimal/

Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-lucene/build.xml,v
retrieving revision 1.56
diff -u -r1.56 build.xml
--- build.xml   19 Feb 2004 18:13:30 -0000      1.56
+++ build.xml   26 Mar 2004 04:56:53 -0000
@@ -11,7 +11,7 @@
   <property name="name" value="lucene"/>
   <property name="Name" value="Lucene"/>
   <property name="version" value="1.4-rc1-dev"/>
-  <property name="year" value="2000-2003"/> <!-- todo: make this dynamic -->
+  <property name="year" value="2000-${current.year}"/> 
   <property name="final.name" value="${name}-${version}"/>
   <property name="javac.deprecation" value="on"/>
   <property name="javac.debug" value="on"/>
@@ -34,6 +34,11 @@
 
   <property name="junit.output.dir" location="${build.dir}/test"/>
   <property name="junit.reports" location="${build.dir}/test/reports"/>
+  
+  <!-- Dynamically generates current year for use in ${year} property -->
+  <tstamp>
+    <format property="current.year" pattern="yyyy"/>
+  </tstamp>
 
   <!-- Build classpath -->
   <path id="classpath">

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

Reply via email to