ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RADEMAKERS Tanguy" <Tanguy.RADEMAK...@swift.com>
Subject RE: How to RENAME a file in ANT 1.6.2
Date Fri, 22 Jun 2007 14:06:14 GMT
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


Mime
View raw message