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 add a library to a web project using ProjectClassPathModifier.addLibraries. There seems to be no way to disable packaging of the added library in a web project.
I recall we hit this before and it is addressed somehow - Davide?
See web.project module. There is org.netbeans.modules.web.project.api.WebProjectLibrariesModifier which should do what you need. WebProjectLibrariesModifier can be retrieved from project's lookup.
Unfortunately I cannot use the module: C:\Programme\NetBeans 6.5\harness\build.xml:98: The module org.netbeans.modules.gwt4nb is not a friend of C:\Programme\NetBeans 6.5\enterprise5\modules\org-netbeans-modules-web-project.jar
Currently the following code is used (and the library added this way will be deployed): ProjectClassPathModifier.addLibraries( new Library[] {libUser}, sourcesDir, ClassPath.COMPILE); isn't it a valid way to add a library without deploying it? There is also ClassPath.EXECUTE available. Isn't it a bug in ProjectClassPathModifier.addLibraries?
If you have commit rights then add org.netbeans.modules.gwt4nb as friend of web.project or I can do it for you.
Could you please add the module to the list? The code name base is org.netbeans.modules.gwt4nb What would be the best workaround for NB 6.7?
Here is the problem on the GWT module side: https://gwt4nb.dev.java.net/issues/show_bug.cgi?id=53
Fixed in 3bb0be175af0. If you grab a build containing the fix (once available) and verify that it works then perhaps fix could be included in 6.7 patch release.
.
reviewed by QE, the fixes is allowed to be transplanted into 6.7, reporter please verify the patch fixed your issue
Integrated into 'main-golden', will be available in build *200907081400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3bb0be175af0 User: David Konecny <dkonecny@netbeans.org> Log: #162445 - adding new friend (org.netbeans.modules.gwt4nb)
The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/383ce72ba15e
reviewed in release67_fixes rep