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.
Use case: The JavaScript library requires properties like library version, CND site of origin, library homepage, etc to be associated with library.
Created attachment 116296 [details] Diff file
Comment to diff format: library-declaration-3_0.xsd could probably be marked as a copy of library-declaration-2_0.xsd, making the diff more apparent. [JG01] Avoid java.util.Properties in API signatures whenever possible, as it is poorly typed. Map<String,String> would be preferable. Also consider using Collections.immutableMap. [JG02] Various libraries use a special volume type maven-pom to give corresponding Maven coordinates, but it is difficult to parse this back out into usable form (repositoryId, repositoryUrl, groupId, artifactId, version, classifier), and the maven-pom volume tends to get clobbered after user customizations to other volumes anyway. Do you think these libraries can be updated to use <properties> instead? [JG03] Typo (2x): "SAXException;;"
Re. JG02 - yes. That's very similar to what I'm doing with JavaScript libraries loaded from some public CDN. In additional to some URL in a volume I'm providing via properties additional information for each JS library like CDN source, library version, etc. At the moment properties are per library and not per volume but I do not think that's a problem.
JG01: Fixed. JG02: Yes, it can be. The question is how to solve the backward compatibility. Should it be solved by Maven (when Library has no properties it asks about POM volume) or should the LibraryParser allow some update interfaces to be registered which convert the old POM volume libs into LibraryImplementation3? JG03: Fixed.
Fixed jet-main 63e9b72e0d64
Integrated into 'main-golden', will be available in build *201203170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/63e9b72e0d64 User: Tomas Zezula <tzezula@netbeans.org> Log: #209100:Allow Libraries to provide properties
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/07201ffb951e User: David Konecny <dkonecny@netbeans.org> Log: hand merging #209100 into easel branch to minimize future conflicts