ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9784] New: - BuildNumber task: make more extendable...
Date Tue, 11 Jun 2002 15:56:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9784>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9784

BuildNumber task: make more extendable...

           Summary: BuildNumber task: make more extendable...
           Product: Ant
           Version: 1.5Beta2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: breese@grandcentral.com


BuildNumber is a great task! However, it is something I would like to extend in
order to generate version/build numbers of my own. For example, build.number
contains a single int that gets incremented. I would like to be able to
increment a number fitting a different pattern...

Perhaps the BuildNumber task could be extended to take in a pattern - the
pattern would be applied to the actual version number in order to determine how
to increment it.

For example, my company uses the typical pattern 1.15b4 indicating version 1,
16th release (it starts counting from 0) and the 4th build. When I generate a
build I would like to increment it to 1.15b5. The build.number file could
contain an additional property:

build.number=1.15b4
build.number.pattern={major}.{minor}b{build}

When the BuildNumber class parses the build.number file it returns a HashMap
that contains three values: major, minor and build. Then it increments the value
of build and rebuilds the pattern.

I would be happy to work on this if you want to assign the bug to me...

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message