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 198833 - Harness README references wrong properties file to override 'cluster' property
Summary: Harness README references wrong properties file to override 'cluster' property
Status: VERIFIED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 19:33 UTC by tomwheeler
Modified: 2011-05-26 11:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomwheeler 2011-05-23 19:33:35 UTC
I recently needed to build a NB module suite into multiple clusters.  I recall the harness README file mentioning a 'cluster' property which could be overridden to specify the cluster directory.  The 7.0 release harness README has the following starting at line 628:

   cluster - cluster directory your module is to be built into. 
   ...
   For suite component modules, it defaults to "${suite.dir}/build/cluster", 
   though you could override it if you wanted (e.g. in platform.properties); 
   similarly, for standalone modules, it defaults to "${basedir}/build/cluster". 
   Available in project.properties for netbeans.org modules only.

This implies that I should define the 'cluster' property in my module's nbproject/platform.properties file.  However, doing this had no effect; when I added a target to echo the value of ${cluster}, it showed the same value regardless of how the 'cluster' property was set in platform.properties. Instead, I found I had to define the 'cluster' property in the nbproject/project.properties file.
Comment 1 Jesse Glick 2011-05-25 15:58:42 UTC
(In reply to comment #0)
> I recently needed to build a NB module suite into multiple clusters.

This is not supported; create multiple suites instead. I will just delete any mention of overriding it. If it works for you, great, but there may be subtle problems that arise later. core-main #689d09019e7e
Comment 2 tomwheeler 2011-05-25 16:27:20 UTC
If it's unlikely to work properly, than I agree that removing any mention of the 'cluster' property seems like a reasonable fix.
Comment 3 Quality Engineering 2011-05-26 11:19:06 UTC
Integrated into 'main-golden', will be available in build *201105260401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/689d09019e7e
User: Jesse Glick <jglick@netbeans.org>
Log: #198833: tip for overriding ${cluster} was wrong.