Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
How to RENAME a file in ANT 1.6.2

How to RENAME a file in ANT 1.6.2

2007-06-22       - By RADEMAKERS Tanguy
Reply:     1     2     3  

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:satish@(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: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.