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 31125 - WAR: Mounted jar file is extracted when addded as extra file.
Summary: WAR: Mounted jar file is extracted when addded as extra file.
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: All All
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-16 19:13 UTC by Jason Rush
Modified: 2005-05-03 15:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Rush 2003-02-16 19:13:40 UTC
Description: 
Build Pilsen RC3:
When add an extra jar file from mounted jar(using Mount Jar...) to web module's 
war file, the jar file is extracted into all its content files and these files 
are added into war file. I was told by Chikkala that it was because the mounted 
jar was mounted as filesystem and it is no long a single jar file. I think it 
would be nice that when user selects the mounted jar file, the jar file alone 
is added into the war file.

Work Around: 
If user wants to add extra jar file, user should mount directory that contains 
the jar file then select far file from the mounted directory.

Suggested Fix: 
Add the jar file as a single dataobject when the root of the jar file system is 
selected. If user selects individual files in the jar filesystem, add them as 
individual dataobject ( by extracting them from the jar filesystem. this is 
done by the jar fs automatically ) 

Evaluation: 
Since Jar file when mounted acts as a filesystem, the DataObjectListEditor in 
the JarPackager Module ( extra files editor is extended from this ) assumes the 
root of the jar file as the root of the file system and adds all the available 
dataobjects from the root as a separate dataobjects to the extra files.

With this, users think that they are adding a single jar file, but the system 
takes the jar file system and extrats individual files

Suggested Solution:

Add the jar file as a single dataobject when the root of the jar file system is 
selected. If user selects individual files in the jar filesystem, add them as 
individual dataobject ( by extracting them from the jar filesystem. this is 
done by the jar fs automatically ) 

schikkala 2001-10-15

A comment.
Comment 1 Jason Rush 2003-02-16 19:14:15 UTC
Transferred from BugTraq 4491489.
Comment 2 zikmund 2005-05-03 15:24:58 UTC
Extra JAR files are added through Properties in NetBeans 4.1.