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.
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.
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.