You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alex Gugel <al...@100world.de> on 2001/06/20 12:35:46 UTC
regexp-mapper and windows directories
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
Re: regexp-mapper and windows directories
Posted by Stefan Bodewig <bo...@apache.org>.
Alex Gugel <al...@100world.de> wrote:
> Is there a way to tell the regexp-mapper that "/" means "directory
> seperator" (regardless of the operating system)?
use ${file.separator} instead of /.
Stefan