ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van Oostrum <rvanoost...@ezgov.com>
Subject Re: regexp-mapper and windows directories
Date Wed, 20 Jun 2001 11:42:57 GMT
aren't you supposed to escape the $ in regexps? so you would have to put
$${propname}

Alex Gugel wrote:

> > use ${file.separator} instead of /.
> >
> >Stefan
>
> Thank you. But I encountered some errors:
>
> 1.) <mapper type="regexp" from="^.*${file.separator}build(.*)$$"
> to="\1"/> does not work.
>
> and
>
> 2.) If $(file.seperator} is followed by (.*) like
>
> <mapper type="regexp" from="^.*${file.separator}(.*)$$" to="\1"/>
>
> then I got:
>
> C:\cygwin\home\administrator\cvs\Curiavant\CUT02\build.xml:176:
> org.apache.regexp.RESyntaxException: Syntax error: Unmat
> ched close paren
> --- Nested Exception ---
> org.apache.regexp.RESyntaxException: Syntax error: Unmatched close paren
> ...
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> Must I escape ${file.separator} in some way? Or what else is wrong?
>
> alex


Mime
View raw message