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 - Cannot create more classpath instances sharing one source root.
Summary: Cannot create more classpath instances sharing one source root.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-22 12:42 UTC by _ rkubacki
Modified: 2010-12-14 10:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.