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 140730

Summary: fatjar
Product: java Reporter: lblum <lblum>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: bash fatjar script

Description lblum 2008-07-18 12:53:24 UTC
If you "build" a project then it creates a jar file with a lib/ folder in dist/. How about an option which squeezes all
jar files into one (like fatjar in eclipse)? I suggest to do it with a checkbox, so you have the choice. For now I have
a bash script doing this an I think it would be simple to implement this in netbeans.
Comment 1 lblum 2008-07-18 12:54:14 UTC
Created attachment 64950 [details]
bash fatjar script
Comment 2 Tomas Zezula 2008-07-18 13:00:20 UTC
Yes, it's possible. As far as I remember there was already a discussion about it. It's late to do it into NB 6.5 since the features are already frozen only bug fixes 
can be integrated. Setting the target milestone to next release.
Comment 3 lblum 2008-12-02 09:21:27 UTC
I come back to my previous issue but with an addition:
My experience has shown that (in my case) sometimes it is a very good idea to include the source code into the jar. I
had several occasions where I had a jar file with a bug but no chance to find the right source again (I am in research,
so this happens...)

So by adding a "fatjar" switch it would be nice (at least for me and some of my colleagues) to have also a "include
source" switch...

many thanks.