ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Gugel" <>
Subject regexp-mapper and windows directories
Date Wed, 20 Jun 2001 10:35:46 GMT

I have a problem with the regexp mapper. In a <fileset> we use "/" to
seperate directories regardless
whether we use windows or unix. But the regexp-mapper is aware of the
actual directory seperator. So if I use ant under windows the following
does not work (but under linux it works):

<copy toDir="testdir">
  <fileset dir="contrib">
   <include name="**/build/classes/**"/>

  <mapper type="regexp" from="^.*/build/classes/(.*)$$" to="\1"/>

Is there a way to tell the regexp-mapper that "/" means "directory
seperator" (regardless of the operating system)?


Alexander Gugel            AG
Professional Services               Vordere Cramergasse 11
Fon: +49 (0)911 4244-210            D-90478 N├╝rnberg
Fax: +49 (0)911 4244-XXX   

View raw message