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 127718 - can't build a jar without copying libraries
Summary: can't build a jar without copying libraries
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2008-02-19 10:54 UTC by jerome_bouat
Modified: 2011-08-31 14:07 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description jerome_bouat 2008-02-19 10:54:36 UTC

I'm developping a software with the sources provided along with the binaries.

This is intended to replace a Visual Basic macro file.

Thus I do need to have the source with the binaries.

I put my own file in the root folder fo the project.
In my file, I specify the main class and the class path.

However, Netbeans is still copying all my libraries,
thus increasing the space used on my company files share.

Could we have a check box in the project properties like:
"don't copy libraries"
Comment 1 jerome_bouat 2008-02-19 11:11:37 UTC
The only trick I had to use is put the following tasks in my build.xml file:
<target name="-post-jar" depends="javadoc">
    <!-- cleanup for avoiding to copy useless files on the share -->
    <delete dir="${dist.dir}/lib" />
    <delete dir="${dist.dir}/README.TXT" />
    <delete dir="${build.dir}" />
Comment 2 Peter Pis 2008-02-21 08:44:25 UTC
Reassigning to "projects".
Comment 3 Tomas Zezula 2008-02-21 09:38:51 UTC
You can use the workaround above, but I agree that there there should an option or at least a property disabling libraries copy.
I will put the property there for now.