Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 193436

Summary: Allow library registration using AnnotationProcessor
Product: projects Reporter: Tomas Zezula <tzezula>
Component: LibrariesAssignee: Tomas Zezula <tzezula>
Status: RESOLVED WONTFIX QA Contact: issues <issues.netbeans.org>
Priority: P3 CC: jglick
Version: 7.0Keywords: API, PLAN
Target Milestone: 7.2   
Hardware: All   
OS: All   
Whiteboard:
Issue Type: ENHANCEMENT Exception Report:

Description Tomas Zezula 2010-12-15 12:35:48 UTC
Allow library registration using AnnotationProcessor by annotation on package pointing to the definition file. The AP also should warn if the library contains file based URL.
Comment 1 Jesse Glick 2011-01-07 01:27:16 UTC
Good idea. But why not generate the definition file from the annotation?

@Library.Registration(type="j2se", name="swing-layout", displayName="#swing-layout", volumes={
  @Library.Volume(type="classpath", resources="jar:nbinst://org.jdesktop.layout/modules/ext/swing-layout-1.0.4.jar!/"),
  ....
})
package p;
Comment 2 Tomas Zezula 2011-01-07 09:18:25 UTC
Even better.
OK, thanks Jesse I will do it in this way.
Comment 3 Martin Balin 2016-07-07 08:38:02 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo