You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Satheesh <sa...@ltp.soft.net> on 2007/05/21 13:03:36 UTC

How to get the month number thro ant.

Hi I need to set a property in my build.xml which has the value of the current month so that i can use that in my test cases.

How can i achieve this.
Am totally new to this Ant.
____________________________________
Satheesh . J
99450 31654

Lisle Technology Partners India Pvt Ltd
1134, 4th Floor, 100 Feet Road
HAL 2nd Stage, Indiranagar
Bangalore 560 038, India
Telefax. +91-80-2521 0604/05
____________________________________

Re: How to get the month number thro ant.

Posted by Kevin Jackson <fo...@gmail.com>.
Hi,

#1 Read the manual, there's a task[1] just for this

  <tstamp>
      <format property="current.month" pattern="MM"/>
  </tstamp>

Hope this helps.
Kev

[1] http://ant.apache.org/manual/CoreTasks/tstamp.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org