IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Auto-numbering/ Auto-incrementing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Auto-numbering/ Auto-incrementing" Watch "Auto-numbering/ Auto-incrementing" New topic
Author

Auto-numbering/ Auto-incrementing

Hann-Yu Chang
Greenhorn

Joined: Feb 17, 2004
Posts: 9
Has anyone implemented a means of versioning in ANT? I would like to auto-increment build numbers and use the generated build number in file and jar names.
I'm attemping to use a combination of the <property> and <propertyfile> tags and have created a separate properties file to keep track of the version numbers. Although not quite right yet, it does auto-increment. The problem now is getting that build number to populate
So that this:
Tools-${build}.jar
Results to:
Tools-1.2.jar
Any insight would be helpful. Thanks!
 
 
subject: Auto-numbering/ Auto-incrementing
 
Threads others viewed
auto-Increment version number.
Reading a property from a file
stuck up in the problem
add manifest.mf to jar file using maven
JNLP Jar Href and Ant
IntelliJ Java IDE