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 205594 - Removing and re-adding wrapped jar file does not set the public packages
Summary: Removing and re-adding wrapped jar file does not set the public packages
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 08:13 UTC by mienamoo
Modified: 2013-08-09 15: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 mienamoo 2011-11-28 08:13:01 UTC
NetBeans IDE 7.1 RC1 (Build 201111171527)
JDK 7 build 147

When removing a wrapped jar file from a library wrapper module and re-adding it, the public packages are not set in project.xml again. This would then lead to build failures for modules depending on the library wrapper.

Steps to reproduce:

1. Create a NetBeans Platform Application project.
2. Create a library wrapper module in the suite from step 1, choosing a valid jar file.
3. Inspect project.xml and note the public-packages that have been specified.
4. Access the library wrapper module's properties, go to the Libraries category and select Wrapped JARs.
5. Remove the wrapped jar.
6. Click on Add JAR and choose the same jar file again.
7. Inspect the project.xml file again - no public packages are defined.
Comment 1 Jesse Glick 2011-11-30 15:41:52 UTC
Public packages are just set as a convenience by the library wrapper wizard. In general you are expected to maintain this list in the Properties dialog.
Comment 2 Martin Kozeny 2013-08-09 15:27:53 UTC
Closing as invalid, because as was said before, public packages are set by the library wrapper wizard.