ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Fuller" <jim.ful...@ruminate.co.uk>
Subject RE: [Ant 1.5.4] HowTo rename a set of files?
Date Sun, 22 Feb 2004 10:17:13 GMT
> From: Iwan [mailto:java@i-ware.net] 
> Sent: 21 February 2004 23:46
> Subject: [Ant 1.5.4] HowTo rename a set of files?

> I've got a set of files in a directory:
> 
> 	CreateClientForm.jsp
> 	CreateClientForm.properties
> 	CreateClientFormContent.jsp
> 	CreateClientFormTitle.jsp
> 
> And I want to rename them to:
> 
> 	CreateClient.jsp
> 	CreateClient.properties
> 	CreateClientContent.jsp
> 	CreateClientTitle.jsp
> 
> I know I can do this by hand, and even by having multiple 
> move-statements, but I'm sure that Ant can do this for me, I 
> just don't know how. So hopefully somebody on the list knows how to?

Use either the glob or probably in your case the regexp file <mapper/>
nested within the <move/> or <copy/> task.

gl, Jim Fuller


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


Mime
View raw message