Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
simple buildnumber task usage question

simple buildnumber task usage question

2007-07-30       - By David Weintraub
Reply:     1     2     3     4  

The BuildNumber task sets the property build.number when executed. You
don't have to do anything else.

On 7/30/07, Alex Egg <eggie5@(protected)> wrote:
> Hi have this gzip task, and I would like to use the buildnumber task to
> append a build number to the file name:
> <gzip src="${temp}/s3/_management.js" destfile="${temp}/s3/management_${
> build.number}.js"/>
>
> So my gzipped file would be something like: management_3.js
>
> I already have the task in my build file as:
>
> <buildnumber/>
>
> but that just saves it to the build.number file, how do I get it to a
> property in my build file so I can use it in my path name?
>


--
--
David Weintraub
qazwart@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.