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 133163 - Shared libraries management
Summary: Shared libraries management
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 06:57 UTC by _ gtzabari
Modified: 2013-05-06 09:48 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 _ gtzabari 2008-04-18 06:57:52 UTC
dev build 200804101202

Project Properties -> Libraries -> Libraries Folder -> Browse
I expect to be able to null out this field in order to disable the "dedicated folder" feature but there doesn't seem to
be a way to do so.

Users should be able to enable/disable shared folders on existing projects.
Comment 1 Karthikeyan Rajeswaran 2008-06-11 02:44:09 UTC
This issue is also discussed at:
   http://www.nabble.com/How-to-remove-dedicated-libraries-folder-from-a-project--tp17734391p17734391.html
   http://www.nabble.com/Removing-%22dedicated-folder%22-for-storing-libraries-tp16760372p16760372.html

There doesn't seem to be a way to remove the library directory reference itself via the GUI. I think one workaround
would be to add the libraries directly to the project and effectively disable the shared library directory (i.e simply
not use it even if it is present).  Manually deleting the library reference in project.xml and project.properties may
also work.
Comment 2 _ gtzabari 2008-07-24 04:35:30 UTC
I'm surprised that no one filed a RFE yet that asks for the ability to edit shared libraries. Currently there is no way to:

- Disable shared libraries
- Remove shared libraries (that is, individual entries)
- Re-import a shared library from the global libraries

Hacking property files by hand doesn't sound like a nice way of doing things. Can someone please re-assign this RFE into
the current category?
Comment 3 _ gtzabari 2008-07-24 04:36:40 UTC
Sorry I missed two other important features:

- Ability to edit shared libraries (change their classpath, source path, etc)
- Ability to export shared libraries back into the global libraries
Comment 4 _ wadechandler 2008-09-11 23:43:35 UTC
It seems the ability to re-sync the libraries from the global libraries is something very necessary. I just ran into an
issue with web services and JAX-WS client generation when working in NB 6.5 against a project I started in 6.1. I could
update the project rather easily were I able to remove the old JAX-WS 2.1 library and add the JAX-WS 2.1 from 6.5.
Partly it could be viewed as the name needs to have more than major.minor for JAX-WS, but I could easily fix it in the
IDE were it some how easier to manage the libraries whether that be delete and add again or re-sync them. Just being
able to easily edit them without manually do it by hand would be nice though.
Comment 5 neilfjava 2009-04-20 12:09:02 UTC
Any reason why users are prevented from clearing the contents of the Project:Properties->Libraries->Libraries Folder?
If there is a way, please let me know.
Comment 6 jdhood1 2010-01-29 13:17:19 UTC
I know some of you aren't going to like this, but, if you have to get a job done, this may help.  If you go into your "project.xml" file (in the project's "nbproject" sub-directory), you can remove the reference to the Libraries Folder.  For example, here's my "project.xml" file before I changed anything:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
    <type>org.netbeans.modules.java.j2seproject</type>
    <configuration>
        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
            <name>Capture</name>
            <minimum-ant-version>1.6.5</minimum-ant-version>
            <source-roots>
                <root id="src.dir"/>
            </source-roots>
            <test-roots/>
        </data>
        <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
            <definitions>.\lib\nblibraries.properties</definitions>
        </libraries>
    </configuration>
</project>

I removed the <libraries>...</libraries> tag such that the file now looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
    <type>org.netbeans.modules.java.j2seproject</type>
    <configuration>
        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
            <name>Capture</name>
            <minimum-ant-version>1.6.5</minimum-ant-version>
            <source-roots>
                <root id="src.dir"/>
            </source-roots>
            <test-roots/>
        </data>
    </configuration>
</project>

Save the changes and then right-click on your project, go to "Properties"->"Libraries" to confirm that the "Libraries Folder" field is now blank.  Then click "OK" to recreate the "build-impl.xml" file.  That should do it.  It worked for me, anyway.  Good luck.
Comment 7 Antonin Nebuzelsky 2010-07-30 15:16:51 UTC
Reassigning to default owner.
Comment 8 giorgio42 2013-05-06 09:48:55 UTC
Just ran into this one.
Still exists in 7.3.1.

Very disappointing.