The "\n" in "C:\nb\main" is interpreted as a newline character. Try using forward slashes - that works even on Windows.
Henk van Voorthuijsen On May 4, 2011, at 12:36 PM, P.N. wrote: > > 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-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org