Hi Carl & all,
The "buildnumber"-task is to the best of my knowledge a
do-it-all-in-one-chop kind-of-thing. It reads and increments atomically.
I myself do not like this. There should be two different operations - one
for reading the number, another for incrementing it. Is should also be
possible to select the name of the property to which the number is assigned.
One way around it is to use "loadproperties" in the beginning of a build-job
to read the build-number and after using it in a successful
compilation/build then use "buildnumber" to increment the buildnumber. In
this way, the number is not incremented unless the thing actually builds.
This is my own solution, for now.
Lots of things can be improved.
Regards,
Morten Sabroe Mortensen
-----Original Message-----
From: Carl Schumann
To: user@ant.apache.org
Sent: 01-08-03 15:00
Subject: task: does it increment only for successful builds?
Hi,
Does only increment for successful builds? The on-line
docs do not appear to address this.
Thanks,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org