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 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.
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.
core-main #c41c6ff7c679
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.
Thanks.