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.
Summary: | can't prevent libraries to be copied in dist/lib | ||
---|---|---|---|
Product: | java | Reporter: | jerome_bouat <jerome_bouat> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jrojcek |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
jerome_bouat
2007-05-22 10:38:36 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> """ You can override -do-jar-with-libraries target in the build.xml and call target -do-jar-with-mainclass in it using antcall. 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 ? 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. mkdist.disabled=true in project properties. |