Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
Rename directories in Ant

Rename directories in Ant

2007-06-13       - By Gilbert Rebhan
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Cesar Martinez Izquierdo wrote:

> Sorry, it doesn't seem to work.
[...]
> Probably, something similar can be performed using the glob mapper as
> you suggested, but it will fail when there is a 'search' directory
> inside another 'search' directory (as far as I understand...).


you're right, /search/search doesn't work.
Maybe there's another solution with regexp ?
regexp="(\\)?(search)(.[^\.]+)?"
replace="\1\2_\3"

Finally <script> will do the job.
sorry for now ...


Regards, Gilbert



---------------------------------------------------------------------
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.