You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2005/11/14 10:39:47 UTC

Copy with regexpmapper

Hi,

i want to do a filenametransformation when copying
a file.

I tried with =

<copy file="T:/__SCM__/work/130/Bla24_Test_051114_0914.ear"
todir="T:/Test">
<regexpmapper from="(\w+_\w+)(_\d+_\d+)" to="\1.ear"/>

</copy>

I want Bla24_Test.ear, but the filename stays the same.

What's the right syntax when using rerexpmapper ??


Gilbert

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