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 236262

Summary: Allow developer to specify the name of the cluster that a module should belong to
Product: apisupport Reporter: mienamoo
Component: HarnessAssignee: pgebauer <pgebauer>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description mienamoo 2013-09-23 11:09:35 UTC
For an Ant-based NetBeans platform module, I would like to be able to specify which cluster that specific module should belong to when it is built. This is AFAIK easy for Maven-based modules. But for Ant-based modules, I had to edit the build harness to make this possible...
Comment 1 Martin Kozeny 2013-10-14 07:14:45 UTC
Could you please more specify, what would you like to do and how it is done in maven? Thanks.
Comment 2 mienamoo 2013-10-15 17:55:12 UTC
To see how the Maven process works:

1. Create a Maven-based NetBeans Platform Application project.
2. Create two new Maven-based NetBeans Module projects within the folder of the parent.
3. Add both new modules as dependencies to the Application project.
4. For each of the module projects, now add a cluster property to the nmb-maven-plugin configuration (different value for each):
     <configuration>
         <cluster>a</cluster>
     </configuration>
5. Build with dependencies the application project.

When the platform application is built, each of the modules appear in their own cluster folder. Although the mechanism is very different, the output is similar to how the IDE's modules are grouped into clusters when they are built.

The only way I can see to change the name of the output cluster in an Ant-based project, is to change the name of the suite of which it is a part. But I want to have a finer level of distinction to avoid having to have a great number of suites (and suite chains) in our application.

Please let me know if I can provide more information. :)