?
Solved

Labelling(versioning) the Ant build

Posted on 2004-10-21
3
Medium Priority
?
228 Views
Last Modified: 2010-04-06

 I have been trying to label the version of builds which I am making. I could time stamp them but I am not able to figure out how to label the builds with that info. Or is there any other option?
0
Comment
Question by:anilyitta
1 Comment
 
LVL 3

Accepted Solution

by:
gnudiff earned 2000 total points
ID: 12398422
Well, there are several places/ways to put the info.

One case is make project properties file with PropertyFile task, and add the build number Property to it.

If timestamp is what you need, it could be something like:
<propertyfile
    file="my.properties"
    comment="My properties">
  <entry  key="adate" type="date" value="now"/>
  <entry  key="formated.date" type="date" value="now" pattern="DDD HH:mm"/>
</propertyfile>

will produce a file my.properties with the following content:

#Thu Nov 02 23:41:47 EST 2000
adate=2000/11/02 23\:41
formated.date=028 17\:34

This task should be placed within another task, of course, which executes whenever you want to build the project.

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question