Thanks Rob and Scot. I did looked the Ant manual.. it din't have eg about
creating directories. Storing the value in property and calling it din't
strike to me.

-

-----Original Message-----
From: Robert Clark [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 20, 2006 3:15 PM
To: Ant Users List
Subject: Re: create a dir with current date

On Friday October 20, 2006 15:05, "Muthyala, Sunil" 
<[EMAIL PROTECTED]> wrote:
> I am trying to create a directory with current system date, I tried
> using "tstamp" but did not work.

<tstamp>
    <format property="TODAY" pattern="yyyy-MM-dd" locale="en"/>
</tstamp>

<mkdir dir="sample-directory-${TODAY}"/>

Should do the trick for you. You can adjust the partern to be any date 
format you want.

> Where can I get more info on "tstamp" usage.

<http://ant.apache.org/manual/CoreTasks/tstamp.html>

Cheers, 
   Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to