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 129549 - Allow to select only correct libraries locations
Summary: Allow to select only correct libraries locations
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: PC Windows 10 x64
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 14:23 UTC by Tomas Danek
Modified: 2016-12-08 03:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Music Player (3.08 MB, application/octet-stream)
2016-12-08 03:52 UTC, zarafshan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-03-07 14:23:20 UTC
Product Version: NetBeans IDE Dev (Build 200803060007)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: SunOS version 5.11 running on x86; UTF-8; en_US (nb)
Userdir: /tmp/ud
-------------------------
- create new j2se project
- open customizer, libraries panel
- hit browse button - filechooser is opened. Select some location which is not libraries location (i.e. does not contain
metadata) --> filechooser should allow to select only appropriate libraries location, or "create new libraries location"
by writing metadata into ordinary (or non existent) folder.
Comment 1 Milos Kleint 2008-03-10 09:12:10 UTC
wontfix. The user can actualy already have a folder with jars (originating from eclipse or idea for example). It doesn't
make sense to prohibit use of this folder as a correct library definition location.
Comment 2 Tomas Danek 2008-03-10 10:23:35 UTC
ok, but if user selects some folder with jars, (s)he's unable to build such a project because of missing
nblibraries.properties

Creating /home/tomas/jfree/lib/nblibraries-private.properties
/home/tomas/NetBeansProjects/JavaApplication14/nbproject/build-impl.xml:51: Source resource does not exist:
/home/tomas/jfree/lib/nblibraries.properties
BUILD FAILED (total time: 0 seconds)
Comment 3 Antonin Nebuzelsky 2010-07-30 15:16:49 UTC
Reassigning to default owner.
Comment 4 Tomas Zezula 2013-01-08 16:48:45 UTC
Unfortunately I am not able to add the FileFilter to prevent you from selecting invalid folder as the FileChooser is created by API used for several other things. But I can verify the folder when you select it and show you an error rather than breaking the project.

Fixed jet-main 51e3e385f5bd
Comment 5 Quality Engineering 2013-01-10 03:30:30 UTC
Integrated into 'main-golden', will be available in build *201301100107* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/51e3e385f5bd
User: Tomas Zezula <tzezula@netbeans.org>
Log: #129549:Allow to select only correct libraries locations
Comment 6 zarafshan 2016-12-08 03:52:32 UTC
Created attachment 163186 [details]
Music Player