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 186044 - Regression: NetBeans 6.9 does not handle multiple src.dir entries in project.properties correctly and thus causes build to fail.
Summary: Regression: NetBeans 6.9 does not handle multiple src.dir entries in project....
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 18:41 UTC by vivien
Modified: 2010-05-13 13:39 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
It contains multiple src.dir entries to demonstrate the problem. (222 bytes, text/plain)
2010-05-12 19:03 UTC, vivien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vivien 2010-05-12 18:41:45 UTC
Product Version = NetBeans IDE Dev (Build 201004250200)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_18
Runtime = Java HotSpot(TM) Client VM 16.0-b13


compile:
 [nb-javac] Compiling 22 source files to D:\Hawaii\main\CME\build\classes
 [nb-javac] D:\Hawaii\main\CME\module\src\java\com\stc\cme\module\CMEAutoGenAction.java:19: package com.stc.cme.view does not exist
 [nb-javac] import com.stc.cme.view.ConnectivityMapEditorController;
 [nb-javac]                        ^
 [nb-javac] D:\Hawaii\main\CME\module\src\java\com\stc\cme\module\CMEAutoGenAction.java:88: cannot find symbol
 [nb-javac] symbol  : class ConnectivityMapEditorController
 [nb-javac] location: class com.stc.cme.module.CMEAutoGenAction
 [nb-javac]    public void performAction(final ConnectivityMapEditorController cmeController,
Comment 1 vivien 2010-05-12 19:03:02 UTC
Created attachment 98890 [details]
It contains multiple src.dir entries to demonstrate the problem.

Quite a few projects within our CAPSEECoreSuite have a layout such that their source code are located in different source sub-folders, for example, the CME project has the following three source sub-folders:

model/src/java
module/src/java
view/src/java

The build used to work fine with NetBeans 6.8 and previous versions. It fails now with NetBeans 6.9 obviously because it doesn't even look into the two extra src.dir.
Comment 2 Tomas Zezula 2010-05-13 08:25:56 UTC
Api support project.
Comment 3 Jesse Glick 2010-05-13 13:39:34 UTC
I don't know how such a setup happened to work in the past, but it is wrong. Please read harness/README about <extra-compilation-unit>s, which you are responsible for compiling yourself using custom build.xml targets. But in this case it is likely that you should simply be splitting up the project into several modules, one for each source root, in which case you can precisely control classpath and dependencies for each root; <e-c-u>s are generally discouraged except for very specific purposes (such as building ant/nblib/*.jar).