# ant-user mailing list archives

##### Site index · List index
Message view
Top
From Antoine Levy-Lambert <anto...@gmx.de>
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 "message.properties".
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
element.
I am attaching a solution.

Cheers,

Antoine

thomasbuttier@auna.com wrote:

>Hi all,
>I have the following file in a directory
>
>D:\In\com.isb.mira.model.ui.contrib.html\src\message.properties
>
>and I would like to copy it to
>D:\Out\com.isb.mira.model.ui.contrib.html_src_message.properties
>
>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.
>
>Thanks
>
>
>
>
>


Mime
View raw message