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 157273 - Automatically include JARs in WEB-INF/lib
Summary: Automatically include JARs in WEB-INF/lib
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on: 116185
Blocks:
  Show dependency tree
 
Reported: 2009-01-21 21:03 UTC by malfunction84
Modified: 2016-07-07 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
I need to add this jar file to 'Web-Inf/lib" (3.15 KB, application/octet-stream)
2014-08-14 20:27 UTC, web
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malfunction84 2009-01-21 21:03:27 UTC
It would be really convenient if the .jar files in MyProject/web/WEB-INF/lib were automatically included in the
project's Libraries.  Adding more .jar files to this location would automatically add them to the Project, and removing
them from this location would automatically remove them from the project.

This would be especially handy for version-controlled projects where the nbproject files themselves are not
version-controlled (to keep the version-controlled files IDE-agnostic).  Changes to a web project's included libraries
could quickly and easily be applied by simply performing a VCS "update" command.  The .jar files would be added/removed
on the working copy, and the IDE would handle the rest.

The default project.properties file for a web project already has the location defined...
  lib.dir=${web.docbase.dir}/WEB-INF/lib
...or you could use ${webinf.dir}/lib as the location instead.
Comment 1 malfunction84 2009-01-21 21:04:43 UTC
Perhaps these .jar files could also be listed under a special heading in the expandable Libraries section of the
Projects window.  Something very literal like "WEB-INF/lib" could work nicely...

MyProject
  + Web Pages
  + Configuration Files
  + Server Resources
  + Source Packages
  - Libraries
      Other Project - dist/Other_Project.jar
    + explicitly-included-library-1.jar
    + explicitly-included-library-2.jar
    - WEB-INF/lib
      + implicitly-included-library-1.jar
      + implicitly-included-library-2.jar
    + JDK 1.6 (Default)
    + Apache Tomcat 6.0.18

And then in the Libraries section of the Project Properties dialog, "WEB-INF/lib" could be automatically listed under
the Compile tab much like "Compiled Sources" is automatically listed under the Compile Tests tab.
Comment 2 malfunction84 2009-02-06 18:25:53 UTC
Once issue 116185 is resolved, this will become a lot easier.
Comment 3 web 2014-08-14 20:27:04 UTC
Created attachment 148710 [details]
I need to add this jar file to 'Web-Inf/lib"
Comment 4 Martin Balin 2016-07-07 08:54:35 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss