[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Labelling(versioning) the Ant build

Posted on 2004-10-21
Medium Priority
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?
Question by:anilyitta
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

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:
    comment="My properties">
  <entry  key="adate" type="date" value="now"/>
  <entry  key="formated.date" type="date" value="now" pattern="DDD HH:mm"/>

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.


Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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:
Suggested Courses

649 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