Small tweak to dynamically generate the current year for the "year" property. It was hardcoded to 2003 :)
Thanks for the prod, I had put the "todo" in there earlier.
Your patch, however, uses current.year before it is set - are you sure what you did worked?
My commit may have just made the build require Ant 1.6. I hope everyone building Ant is at this version - if not I can make it work with 1.5 no problem. With Ant 1.6, we can clean up the build file a fair bit more, so please upgrade. The sandbox has required Ant 1.6 to build for some time now.
Erik
-- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]