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 180475 - Added cluster disappears
Summary: Added cluster disappears
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 168804
  Show dependency tree
 
Reported: 2010-02-09 03:31 UTC by Jaroslav Tulach
Modified: 2010-02-16 04:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hg bundle with my suite sources (3.61 KB, application/octet-stream)
2010-02-09 03:31 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2010-02-09 03:31:46 UTC
Created attachment 93985 [details]
Hg bundle with my suite sources

I am trying to create standalone application based on Netbinox. On first build it downloads additional cluster netbinox with one module. The platform.properties file references this cluster via relative path. However, when I open suite's properties, the cluster is not visible there (in spite being present on disk).

Download the netbinox-sample.hg, populate a repository, do hg update -C and ant build. Then open the suite in NetBeans IDE and check its properties customizer. Check the libraries tab. netbinox cluster is not included. In case you do some modification in the libraries tab (enable favorites module, for example), the platform.properties is regenerated and the netbinox cluster disappers.
Comment 1 Jesse Glick 2010-02-09 11:58:49 UTC
As I surmised in bug #173493 comment #18, the current code makes unfounded assumptions. In comment #19 rmichalsky acknowledges that

"The check you propose would indeed catch some exotic cases (like binary cluster, which is not part of a platform, but is stored under suite root)"

which is exactly the case here. He says

"I'll add it"

but clearly did not do so.

I will try to dig into this code and find a fix. The logic is rather complicated, there are no tests, and I do not entirely understand the code or what the "supported" use cases are, so there is a large chance of regressions.
Comment 2 Jesse Glick 2010-02-09 13:01:04 UTC
core-main #c41c6ff7c679
Comment 3 Quality Engineering 2010-02-10 21:27:02 UTC
Integrated into 'main-golden', will be available in build *201002110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c41c6ff7c679
User: Jesse Glick <jglick@netbeans.org>
Log: #180475: permit a random cluster to be downloaded inside a suite directory without it being considered the suite's own output.
Comment 4 Jaroslav Tulach 2010-02-16 04:26:14 UTC
Thanks.