ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Copying folders
Date Thu, 06 Jan 2005 15:40:30 GMT
Hello Poonam,

I believe you need to use a custom mapper..
read this :
http://ant.apache.org/manual/CoreTypes/mapper.html
I think you need to write a class which implements 
|org.apache.tools.ant.util.FileNameMapper
Cheers,
Antoine
|
Poonam wrote:

>Hi,
>
>Thanks, that was really useful.
>Actually I am trying to copy a set of folders over network. Is there any way
>to change the name of the folder while copying at runtime.
>For eg. The folder name is like
>ReleaseLock.4BA6844C-8F19-429F-BE93-B8A6AAA2E735. I want to change this name
>to run1. Similarly there is another folder named
>ReleaseLock.4371A6844C-8F19-429F-BE93-B8A6AAA2E735. I want to change this
>name to run2. And another to run3.
>
>Can I do it? I tried to use mapper, but was not able to do it. Can you help
>me?
>
>Regards,
>Poonam
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message