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.
If any JS library contains any directory structure (e.g. "aui" library [1], it contains many folders), this structure is removed and all files are put into one directory. The problems are that: (a) relative paths in CSS files do not work, (b) files with same names can be overriden (in fact they cannot because IO exception is thrown). Thanks. [1] One must update JS libs to get it to the list of available libraries. Product Version: NetBeans IDE Dev (Build 20130627-647a62e1a36a) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.8.0-25-generic running on amd64; UTF-8; cs_CZ (nb)
Fixed. http://hg.netbeans.org/web-main/rev/7f91fb9ce2c0
I'm testing this before your fix on aui library and everything works OK. I had a look at the fix and it does not make sense to me: getDestinationFolder is the method which re-creates relative directory structure. And your fix seems to be doing the same.....(unless of course PROPERTY_FILES_ROOT is null - that would explain it. I'm guessing you can reproduce this problem only after fixing 228876.)
The problem was somewhere else - WebUtils.urlToString did not handle jar URLs correctly. I fixed that f4c93c91335c and backed out your original fix 29fbe09c4032.
Integrated into 'main-silver', will be available in build *201306272300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7f91fb9ce2c0 User: Tomas Mysik <tmysik@netbeans.org> Log: #231934 - Relative paths in libraries not preserved
I will have a look at it, thanks.
Sorry, I overlooked getDestinationFolder() method, it is quite new there :) However, the file paths in the UI were still incorrect (select "aui" library in JS Files panel - only pure file names are there since getLibraryFilePath() uses lastIndexOf('/')) so the validation fails on it. I have fixed that. Thanks. http://hg.netbeans.org/web-main/rev/c437f4f29389
> However, the file paths in the UI were still incorrect True. I did no check those. Thanks. It is quite weird actually to list all library filenames next to each other for libraries which have dozen or more files. Would not it be better to show simply something like "aui (15 files)"?
Reported as issue #232052. Thanks.
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f4c93c91335c User: David Konecny <dkonecny@netbeans.org> Log: #231934 - Relative paths in libraries not preserved
*** Bug 232124 has been marked as a duplicate of this bug. ***