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 104485 - can't prevent libraries to be copied in dist/lib
Summary: can't prevent libraries to be copied in dist/lib
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 10:38 UTC by jerome_bouat
Modified: 2014-07-01 12:17 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 jerome_bouat 2007-05-22 10:38:36 UTC
I don't know how to prevent the libraries to be copied in dist/lib directory.

Basically, I use the project folder for running the production application (thus
source and binaries are always synchronized).

I would like the decrease the size of my project folder by removing the
libraries which are copied in the dist/lib directory. I would share the
libraries at compile and run time by simply setting the right classpath in the
manifest file (the manifest file is not intended for that ;) ? ).

How to do it ?

Thanks.
Comment 1 jerome_bouat 2007-05-24 18:05:53 UTC
The only dirty workaround I found,
is adding the following rule in build.xml:
"""
<target name="-post-jar">
     <delete dir="${dist.dir}/lib"/>
</target>
"""
Comment 2 Tomas Zezula 2007-05-25 09:52:36 UTC
You can override -do-jar-with-libraries target in the build.xml and call target
-do-jar-with-mainclass in it using antcall.
Comment 3 jerome_bouat 2007-05-28 13:31:49 UTC
Yes but I have to copy the 25 lines
of the "-do-jar-with-libraries" target
into my "build.xml" file
and then I just give
an empty "runtimeclasspath" argument value
in the "copylibs" task.

Moreover, libraries are intended to be shared,
thus copying libraries is not an usual build
and should be disabled by default.

Why not providing a check box in the project settings ?
Comment 4 Tomas Zezula 2007-05-28 13:45:13 UTC
The task overriding was not meant as a solution it is rather a "quick" work
around. The real solution will probably need a checkbox or something like this.
Comment 5 Tomas Zezula 2014-07-01 12:17:27 UTC
mkdist.disabled=true in project properties.