This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198303 - Cannot build NetBeans on Windows
Summary: Cannot build NetBeans on Windows
Status: RESOLVED WORKSFORME
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: pgebauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 07:30 UTC by Peter Nabbefeld
Modified: 2012-11-14 19:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2011-05-04 07:30:37 UTC
When I want to run the target "build-source-config" on nbbuild,
getting this:

    build-source-config:
    Packaging sources of full modules
    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>


After looking again at the messages, I've noticed "C:\nb\main/(.*)$" being used as a file name pattern - at least the backslashes are illegal in the expression, so the build is broken at least for windows os.
Comment 1 pgebauer 2012-11-14 19:59:34 UTC
I'm not able to reproduce the issue. Here is the output from my build:

bootstrap:
======== WARNING ========
You need to configure a Mercurial username
if you intend to push changes to NetBeans repositories.
Format (in ~/.hgrc or Mercurial.ini):
[ui]
username = Robert Q. Hacker <rhacker@netbeans.org>
=========================
======== WARNING ========
You need to guard against committing carriage returns into Mercurial
if you intend to push changes to NetBeans repositories.
Format (in ~/.hgrc or Mercurial.ini):
[hooks]
pretxncommit.crlf = python:hgext.win32text.forbidcrlf
=========================
Bootstrapping NetBeans-specific Ant extensions...
init-tasks:
init-module-list:
set-buildnumber:
init:
Loading module list from C:\DOCUME~1\PETRGE~1\LOCALS~1\Temp\nb-scan-cache-3db5c7ef-full.ser
build-source-config:
Packaging sources of full modules
Creating Z:\core-main\libs.antlr3.devel\external\antlr-3.4.jar
Downloading: http://hg.netbeans.org/binaries/5CAB59D859CAA6598E28131D30DD2E89806DB57F-antlr-3.4.jar
Building zip: Z:\core-main\nbbuild\build\full-src-dev-20121114-90028d5ceccd.zip
build.xml already added, skipping
BUILD SUCCESSFUL (total time: 80 minutes 35 seconds)