ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: [PATCH] buildnumber task
Date Thu, 25 Jan 2001 16:43:37 GMT
Joe,

Have you looked at the <propertyfile> task?

Diane

--- joe.ottinger@rci.com wrote:
> Enclosed is a "build number" task, which will generate a property file
> with
> (presumably) a build number, as well as generating a property for use
> similar to <tstamp />.
> 
> The classname is org.apache.tools.ant.Buildnumber.
> The available properties are:
> 
> dir (defaulted to ".") - the directory to store the property file in
> propertyfile (defaulted to "build.properties") - the file to store the
> properties in
> property (defaulted to "build.number") - the property to store the build
> number in
> 
> The property file is rewritten, which means comments get lost - but no
> data
> does, so you can store multiple properties into one file if you so
> desire.
> The environment property is named the same as the property attribute
> value,
> so 
> 
> <buildnumber dir="${build}" property="build.number"
> propertyfile="project.properties" />
> <jar jarfile="${rel.dir}/${name}-${TSTAMP}-${build.number}.jar"
>      manifest="META-INF/MANIFEST.MF"
>      basedir="${build.dir}" />
> 
> works quite well.
> 
> The apache source license applies, and is included in the source; I've
> attached the source class as well as a jar containing the full build as
> it
> is on my system.
> 
> Feel free to comment/reject/whatever -- just let me know, as I'll turn
> it
> over to a different bosy (opensymphony) if ant doesn't want to integrate
> it.
> 
> 

> ATTACHMENT part 2 application/octet-stream name=buildnumber.jar


> ATTACHMENT part 3 application/octet-stream name=Buildnumber.java
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

Mime
View raw message