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 170923 - Add jars to classpath should support recursive searching
Summary: Add jars to classpath should support recursive searching
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 3 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-26 11:45 UTC by navneet
Modified: 2016-07-07 08:37 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 navneet 2009-08-26 11:45:57 UTC
Currently, when I try to add to the classpath, I am given a choice between adding a directory or a jar. But I have a
situation where I want to include all jars from within my common library repository. The repository contains the
directories as extracted from the zip files available from the apache and other open source utility library projects.

So, my lib directory looks like:

- lib
-- apache-ant-1.7.1
--- lib (contains several jars inside this)
-- apache-commons-1.0.2 (contains several jars inside this)
--- lib 

etc
Comment 1 Peter Pis 2009-08-26 15:20:17 UTC
Reassigning.
Comment 2 meisacoda 2011-08-08 08:10:36 UTC
Same same for me. Having jars and libs in deep directory structures is a quite common way in many bigger projects. So it should be supported to read a whole directory. Would be great and syve a lot of annoying click-click-click.
Comment 3 Jesse Glick 2011-08-10 20:35:14 UTC
Please do not change Version once set; and only the assignee should set Target Milestone (though clearly 6.9 is now wrong).

BTW it is possible to add all JARs directly in one directory, using multiselection; this does not work however if they are scattered across several directories.
Comment 4 meisacoda 2011-08-11 08:08:34 UTC
Ups. Ok, Sorry. I Will remember that.
Comment 5 l1m5 2012-09-18 22:26:44 UTC
Our artifacts are very similar to this, and they change versions (names) frequently, too. E.g. I could have jar_v1.jar which could easily become jar_v2.jar when someone else commits and deploys to artifactory. It would be great if netbeans would automatically include any jar (no matter the name) from the lib directory.

(In reply to comment #0)
> Currently, when I try to add to the classpath, I am given a choice between
> adding a directory or a jar. But I have a
> situation where I want to include all jars from within my common library
> repository. The repository contains the
> directories as extracted from the zip files available from the apache and other
> open source utility library projects.
> 
> So, my lib directory looks like:
> 
> - lib
> -- apache-ant-1.7.1
> --- lib (contains several jars inside this)
> -- apache-commons-1.0.2 (contains several jars inside this)
> --- lib 
> 
> etc
Comment 6 Martin Balin 2016-07-07 08:37:07 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