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 163891 [details] Proposed API change In J2SE modular project, in presence of multiple modules in a project, several source (type:java, hint:main) and test (type:java, hint:test) locations exist. When using current SourceGroupModifier to materialize a test source root for certain sources, the implementation has no idea how the source and test root relate to each other. A strawman approach is to introduce an abstract "component" or "part" hierarchical structure to the project, with semantics defined by the project implementation. Project types which are not internally structured can ignore such extension. So the j2se project will be structured (from the most general to the least): * modules * module locations * individual folders When configuring a SourceRootConfig, the project abstract location can be given. When attempting to create a SourceGroup, the associated existing SG + desired additional location can be provided. The change affects modules.projectapi and modules.project.ant modules. Please see / review the attached diff.
Created attachment 163892 [details] Proposed API change Sorry, added the java implementation and junit user to the patch
Committed as jet-main#103c1a9d42dc
Integrated into 'main-silver', will be available in build *201704070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/103c1a9d42dc User: Svata Dedic <sdedic@netbeans.org> Log: #270131: related source group support added