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 65567 - suite properties get messed up with same relative name
Summary: suite properties get messed up with same relative name
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 22:25 UTC by Rochelle Raccah
Modified: 2005-12-23 11:27 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 Rochelle Raccah 2005-09-30 22:25:04 UTC
Say I have 2 module projects in my suite:

subdir1/lib
subdir2/lib

They both get added to the suit's project properties as project.lib (the second
added one's path overrides the first).  All seems to be working until you quit
the IDE, but when you restart, the other lib project is not opened with the
suite.  And, if you try to manually open it, there's a message in the log like this:
java.io.IOException: Project in myproject/subdir1/lib does not appear to be
listed in its own module list; some sort of
misconfiguration (e.g. not listed in its own suite)
	at
org.netbeans.modules.apisupport.project.NbModuleProject.<init>(NbModuleProject.java:125)

I didn't really know what was wrong the first few times.  Then, I manually
changed the properties to:
project.subdir1.lib and project.subdir2.lib and restarted and everything was fine.

I suggest the wizards which create these properties take into account the
absolute paths and handle duplicates a bit better.
Comment 1 Jesse Glick 2005-10-03 21:03:20 UTC
Seems like a pretty straightforward bug. Should always uniquify project ref
names (as e.g. ReferenceHelper in ant/project does).
Comment 2 Martin Krauskopf 2005-10-18 11:07:17 UTC
Also another problem related to this issue is that it is possible to add two
modules with the same CNB to the same suite (org.yourorghere.lib by default in
described scenario). It shouldn't be possible.
Comment 3 Martin Krauskopf 2005-10-18 15:01:07 UTC
Now CNB is used as a suffix. Also two suite components with the same CNB are not
allowed to be added.

Checking in NbModuleProjectGenerator.java; 1.38 --> 1.39
Checking in ui/customizer/SuiteUtils.java; 1.11 --> 1.12
Checking in ui/wizard/BasicConfVisualPanel.java; 1.25 --> 1.26
Checking in ui/wizard/Bundle.properties; 1.26 --> 1.27
Checking in ui/wizard/NewModuleProjectData.java; 1.10 --> 1.11
Comment 4 Tomas Danek 2005-12-23 11:27:00 UTC
yes. seems to be fixed ok. Verified.