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 13340 - Set system name of automounted archives acc. to XML location
Summary: Set system name of automounted archives acc. to XML location
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 13337
Blocks:
  Show dependency tree
 
Reported: 2001-06-30 17:50 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Suggested patch to java & javadoc modules (8.44 KB, patch)
2001-06-30 17:51 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-06-30 17:50:30 UTC
The attached patch (applies to java and javadoc modules, very similar in both)
sets the system name of any automatically mounted archives according to the
location (resource path) of the XML file defining them. This is useful because
then the system name is statically deterministic. For example, when mounting a
Javadoc ZIP this way, it is possible to create a static URL (nbfs: and based on
XML location) that will refer to some page in the Javadoc no matter where the
ZIP is physically mounted from.

#13337 makes it occasionally treat the contents of the archive (considered as a
JarFileSystem) be invalid in the FileObject sense, but not reproducibly.
Comment 1 Jesse Glick 2001-06-30 17:51:28 UTC
Created attachment 1802 [details]
Suggested patch to java & javadoc modules
Comment 2 Jesse Glick 2001-07-01 22:35:53 UTC
More news: now [dev jul 1] seems that sometimes the javadoc ZIP
appears as a regular mount, i.e. visible and with the standard rather
than javadoc capabilities. No idea why this would happen.
Comment 3 Jesse Glick 2001-07-13 17:33:49 UTC
Now that #13337 is fixed, I verified that this patch works in the
trunk.
Comment 4 Jesse Glick 2001-07-15 23:32:55 UTC
Patch applied in the trunk:

LibraryArchive.java 1.4
LibraryProcessor.java 1.9
JavadocArchive.java 1.3
JavadocDirectory.java 1.3
JavadocProcessor.java 1.5