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 206168 - <compile-dependency/> missing when adding dependency on osgi bundle
Summary: <compile-dependency/> missing when adding dependency on osgi bundle
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 22:35 UTC by Tomas Stupka
Modified: 2011-12-09 13:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2011-12-08 22:35:42 UTC
- open project properties for some netbeans module
- and module dependency on e.g org.eclipse.jgit
- the entry created in project.xml will be 
<dependency>
  <code-name-base>org.eclipse.jgit</code-name-base>
  <run-dependency/>
</dependency>
Comment 1 Jesse Glick 2011-12-09 13:28:59 UTC
Works when I try it on a new standalone module - added a dep on org.apache.commons.logging; created <compile-dependency/> as expected. Same for org.eclipse.jgit. But for a nb.org module org.eclipse.jgit is not listed as an API-exporting module, whereas org.eclipse.core.jobs and a couple other bundles are. Probably an issue with ModuleEntry.getPublicPackages.
Comment 2 Jesse Glick 2011-12-09 13:34:05 UTC
...because o.eclipse.core.jobs/nbproject/project.xml specifies some <public-packages> whereas o.eclipse.jgit/nbproject/project.xml does not. When used from a nb.org module, the source project is considered rather than the result JAR, and apisupport.ant does not know anything about what the final JAR will contain beyond what project.xml claims. And an empty <public-packages/> indicates that you need to check "Show Non-API Modules" to add the dep, and when added it will be a runtime-only dependency.