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 71807 - compile-dependency without run-dependency should not enforce public packages
Summary: compile-dependency without run-dependency should not enforce public packages
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-01-24 14:05 UTC by Jiri Skrivanek
Modified: 2006-01-26 08:02 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 Jiri Skrivanek 2006-01-24 14:05:07 UTC
Now you have to add <compile-dependency> and <run-dependency> elements to
project.xml to have jars on your classpath. For special cases when you need only
compile-dependency and you don't care about run-dependency it should be possible
to  write only this:

<dependency>
  <code-name-base>org.netbeans.modules.needThis</code-name-base>
    <build-prerequisite/>
    <compile-dependency/>
</dependency>

My case is jellytools test library. It uses classes from IDE but tests are run
by system classloader, so I only need to satisfy compile dependencies.
Comment 1 Jesse Glick 2006-01-24 19:37:19 UTC
The dep module should have been available in your classpath - but as public
packages only, which is incorrect for this kind of situation.
Comment 2 Jesse Glick 2006-01-24 22:59:42 UTC
committed     Up-To-Date  1.37       
nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java
Comment 3 Jiri Skrivanek 2006-01-25 14:13:21 UTC
Verified.
Comment 4 Jiri Skrivanek 2006-01-25 14:20:30 UTC
It should also be fixed for friends and public packages BuildException:

projectized.xml:35: The module org.netbeans.modules.jellytools is not a friend
of platform6\modules\org-netbeans-core.jar

projectized.xml:35: The module platform6\modules\org-netbeans-core-windows.jar
has no public packages and so cannot be compiled against
Comment 5 Jesse Glick 2006-01-25 19:12:29 UTC
Right, forgot that. Also case when JAR has no pub pkgs at all.
Comment 6 Jesse Glick 2006-01-26 00:36:57 UTC
committed     Up-To-Date  1.38       
nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java
Comment 7 Jiri Skrivanek 2006-01-26 08:02:05 UTC
Thanks, it works now.