ant-user mailing list archives

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

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/**"/>
  </fileset>

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

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

yours
alex


Alexander Gugel                     100world.com AG
Professional Services               Vordere Cramergasse 11
Fon: +49 (0)911 4244-210            D-90478 N├╝rnberg
Fax: +49 (0)911 4244-XXX      
alex.gugel@100world.com             www.100world.com


Mime
View raw message