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/06/22 15:12:09 UTC

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
____________________________________

RE: How to RENAME a file in ANT 1.6.2

Posted by RADEMAKERS Tanguy <Ta...@swift.com>.
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@ltp.soft.net] 
>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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: How to RENAME a file in ANT 1.6.2

Posted by David Alves <da...@brnphoenix.com>.
If you just want to rename a single file, use <move>.

Regards,
David Alves

-----Original Message-----
From: Satheesh [mailto:satish@ltp.soft.net] 
Sent: Friday, June 22, 2007 6:12 AM
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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org