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

Summary: can't build a jar without copying libraries
Product: java Reporter: jerome_bouat <jerome_bouat>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description jerome_bouat 2008-02-19 10:54:36 UTC
Hello,

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 manifest.mf file in the root folder fo the project.
In my manifest.mf 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}" />
</target>
---
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.