Hello Satheesh,

You should use a <copy> task with a nested <mapper> - probably a
<globmapper> or a <regexpmapper> depending on how you want to rename the
file.

Check the documentation for the <mapper> in the Core Types section of
the documentation.

Regards,
/t

>-----Original Message-----
>From: Satheesh [mailto:[EMAIL PROTECTED] 
>Sent: Friday, June 22, 2007 3:12 PM
>To: Ant Users List
>Subject: How to RENAME a file in ANT 1.6.2
>
>I need to copy a file and rename it and store it in some other folder.
>What tag should i use..
>Is that <rename> or <move> or <file>//
>Am not clear in it.
>
>____________________________________
>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
>____________________________________
>

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

Reply via email to