You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Thimal Jayasooriya <th...@cs.york.ac.uk> on 2004/03/26 05:57:31 UTC

build.xml tweak

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/


Re: build.xml tweak

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Mar 25, 2004, at 11:57 PM, Thimal Jayasooriya wrote:
> 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: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org