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.
Created attachment 148024 [details] Patch introducing javac.fork flag I cannot build NetBeans with: $ ant clean build command in root directory. Whenever I try the build fails on j2ee.dd module with out of memory error. My setup: $ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) $ ant -version Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0 Apache Ant(TM) version 1.9.3 compiled on April 8 2014 If I switch to j2ee.dd after the build fails and compile the module separately, then the build succeeds. This leads me to following suggestion: Let's move the build into separate process. I can confirm that with attached patch, the compilation succeeds.
As the proposed fix introduces an API change in apisupport.harness I am requesting a review. As I am changing CustomJavac class introduced by Jesse, I am CCing him.
No objections so far, I'd like to integrate tomorrow, then.
ergonomics#4176440f9379
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4176440f9379 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #245636: Support for javac.fork option in project.properties