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 - fatjar
Summary: fatjar
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 12:53 UTC by lblum
Modified: 2011-08-31 14:08 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
bash fatjar script (440 bytes, text/plain)
2008-07-18 12:54 UTC, lblum
Details

Note You need to log in before you can comment on or make changes to this bug.
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.