ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: Replacing a path
Date Mon, 27 Dec 2004 15:02:51 GMT
Hello Thomas,
the difficulty is you have probably an unlimited number of file 
separators between D:\in\ and "".
You need to write your own custom mapper.
The difficulty with regular expression is that there is no syntax I know 
of to back reference a pattern which repeats 0 to n times, like a path 
I am attaching a solution.


Antoine wrote:

>Hi all,
>I have the following file in a directory
>and I would like to copy it to 
>Any Idea ?
>I've tried with mapper and regexp, with package and there is no way to get what I want.

>Once got this, I would like to be able to do the opposite operation.

View raw message