ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "P.N." <peter.nabbef...@gmx.de>
Subject [Ant 1.8.2] Bug in regexpmapper?
Date Wed, 04 May 2011 10:36:03 GMT

Hello!

I've trieb to build NetBeans form source and got this error message:

     C:\nb\main\nbbuild\build.xml:1408:
     java.util.regex.PatternSyntaxException: Illegal/unsupported escape
     sequence near index 6
     C:\nb\main/(.*)$
             at java.util.regex.Pattern.error(Pattern.java:1804)
             at java.util.regex.Pattern.escape(Pattern.java:2284)
             at java.util.regex.Pattern.atom(Pattern.java:2044)
     ...

     The relevant piece of code:
     <pathconvert property="source.dirs" pathsep="," refid="source.dirset">
     <regexpmapper from="${nb_all}/(.*)$" to="\1/**/*" handledirsep="yes"/>
     </pathconvert>

As ${nb_all} is "C:\nb\main", Ant should know it has to handle the whole 
string, but the error position is that of the second backslash.

BTW, I've never used the regexpmapper myself, nor am I a NB developer.

Kind regards

Peter


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


Mime
View raw message