ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: BuildInfo Task
Date Sat, 08 Sep 2001 15:38:19 GMT

How does your task differ from the functionality already available in the
optional <propertyfile> task?  (IMHO, this should be a built-in task).

I'm accomplishing something similar to what you describe by building a file into a WAR file and have written a bean accessor
class for it as well as a Taglib that allows the version to be shown in JSP
pages easily.  I'm currently not doing any auto-incrementing, just capturing
the CVS tag that was used in the build, but <propertyfile> can do
incrementing/decrementing of int and date property values and appending of
string values.


----- Original Message -----
From: "Stephen Oostenbrink" <>
To: <>
Cc: <>
Sent: Saturday, September 08, 2001 5:34 AM
Subject: BuildInfo Task

> Hi,
> I have created a task that creates a release version using a property
> as its input.
> The release version has the following format:
>         <release number>_<build number>_[date stamp]
> - release number: Is the release number for this version of the
> This number is formatted in the form X_Y_Z, where X is the major build
> number, Y the minor build number and Z the patch number.
> - build number: Is the number of builds that have been performed for the
> current release. This number is increased after each call to the task.
> - date stamp: optionally a date stamp can be added to the release version.
> This release version can be used to name a release package so that it is
> easily identified (example: If required the property
> file can be added to the applications jar file. Using a utility class this
> information can be displayed and used by customers to indicate what
> / build of an application they are using
> Each time this task is called the build number is increased and the new
> build number, build platform and the build date is written back to the
> property file.
> I would like to submit this task and the example utility class, that
> displays the build information, as an enhancement. Does anyone think this
> could be a handy enhancement? And if so how do I go about submitting it?
> - Stephen

View raw message