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 184720

Summary: Cannot create more classpath instances sharing one source root.
Product: java Reporter: _ rkubacki <rkubacki>
Component: ClasspathAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ rkubacki 2010-04-22 12:42:11 UTC
My setup looks like this:

java/com/acme/prj1
java/com/acme/prj2
java/com/acme/prj2/lib1
java/com/acme/prj2/lib2
...
javatests/com/acme/prj1
javatests/com/acme/prj2
javatests/com/acme/prj2/lib1
javatests/com/acme/prj2/lib2
...

It means there are huge source roots containing a lot of sources from different project and with various dependencies. I want to create a custom project type represented by individual project/library/component/folder. I can compute classpath for these individual projects but according to Tomas Zezula it is not possible to have more ClassPath instances sharing the same source root (java or javatests in this case).

As a result I can only create a one source classpath per source root and apply some include/exclude patterns to make it reasonably small. Compile classpath will contain JARs that are built as a dependency of my sources + there will be S4BQ. The problem is: 1. it creates wrong classpath mixing unrelated classes together 2. it is mostly as stupid as our Eclipse integration so there is no incentive to do NetBeans plugin.