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.
Current implementation providing CNDJS libraries relies on content of package.json library descriptor file. Which was sufficient when we started using CDNJS more then year ago. But since then CDNJS evolved and relying only on package.json files has many limitations: * library can consist of multiple files (css, html, etc.) and these files are not descrribed in package.json * library can have both debug and release versions and this is not described in package.json either * some JS files may be using non-standard file naming, eg. issue 225132
319f98ce0b0f Few notes about the solution: * I rewrote the provider to analyze directory structure * I removed cdnjs.zip from NetBeans HG repository and treat it as a binary - it got too big (2MB) * the cndjs.zip bundled with the IDE keeps all files so that file structure analysis can be done but content of the files (apart from package.json) files was stripped down * I enhanced code creating JS libraries in project to recreate directories if library is using some (many libraries do)
While implementing this I noticed few issues which I filed separately: * Bug 231324 - cndjs.zip is stored in cache directory (eg. /tmp) * Bug 231325 - library download should abort after first download failure * Bug 231326 - libraries folder incorrectly updated
This issue is relevant too: * Bug 228876 - Use local JS libs if available
Integrated into 'main-golden', will be available in build *201306181109* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/319f98ce0b0f User: David Konecny <dkonecny@netbeans.org> Log: #231323 - implementation of CDNJS libraries provider is out-dated