-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [PATCH] buildnumber taskFor the record, buildnumber's functionality can be replicated by the use of two tasks, available from CVS (according to the docs):
<propertyfile file="foo.properties">
<entry key="build.number" type="int" operation="+" />
</propertyfile>
<property file="foo.properties" />I haven't tested this replacement, as CVS is a royal pain from my current workstation, but this is what the docs indicate.
-----Original Message-----
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 12:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [PATCH] buildnumber task
Bring up index.html via CVS to see the latest version:
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-ant/docs/
(Click on the version number, then on "(as text)" to bring it up in its
formatted state.)Click on the "Optional Tasks" link, then on "PropertyFile" -- you'll see
there is functionality to increment (as well as decrement) a number.(Didn't mean to shoot down your first task contribution, just wanted to
point you to what's already there. If you have improvements you can make
to it, those are always welcome.)Diane
--- [EMAIL PROTECTED] wrote:
> No, because I didn't see one in the jakarta docs. I looked it up in the
> ant-dev archives after I saw this, and it looks like there's some
> collusion
> there.
>
> I'm not sure offhand which direction buildnumber should go in, or even
> if
> it's necessary given propertyfile's existence; the only thing
> buildnumber
> really adds here is the incrementation of a stored value. The two
> certainly
> could coexist, especially if I change buildnumber to not destroy
> comments (a
> planned feature, BTW - but I only spent an hour or so writing this, and
> it's
> my first Ant task. Cut me a little slack. :)
>
> -----Original Message-----
> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 11:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PATCH] buildnumber task
>
>
> Joe,
>
> Have you looked at the <propertyfile> task?
>
> Diane
>
> --- [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Title: RE: [PATCH] buildnumber task
Cool. I did the same thing a while ago... I'll try this as a
replacement.
- [PATCH] buildnumber task joe . ottinger
- Re: [PATCH] buildnumber task Diane Holt
- RE: [PATCH] buildnumber task joe . ottinger
- RE: [PATCH] buildnumber task Diane Holt
- RE: [PATCH] buildnumber task joe . ottinger
- RE: [PATCH] buildnumber task joe . ottinger
- Joshua Davis
