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 82023

Summary: Unit Test classpath parsing silently ignores mistakes
Product: apisupport Reporter: Jaroslav Tulach <jtulach>
Component: HarnessAssignee: pzajac <pzajac>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 54161    
Attachments: ZIP file with sources

Description Jaroslav Tulach 2006-08-06 12:59:59 UTC
I have my own project http://dvbcentral.sf.net with a bit non-standard 
NetBeans platform. I have recently updated it to recent dev build and found 
out that specifying <test-dependencies> is somehow broken. I cannot depend on 
sendopts - which is a module from my platform, but from a bit strange 
location - the module is in dvbcentral cluster...

Please help me found what is wrong.
Comment 1 Jaroslav Tulach 2006-08-06 13:05:02 UTC
Created attachment 32581 [details]
ZIP file with sources
Comment 2 Jaroslav Tulach 2006-08-06 13:07:59 UTC
1. unzip the sources ZIP file
2. go to sources directory 
3. type ant build 
  - this will try to checkout sources from cvs.netbeans.org
  - so run with runsocks or somehow make sure the CVS server is accessible
4. the build will fail, but in module dvbcentral/file
5. nevermind, open dvbcentral/app in NetBeans
6. run tests for the project

The test will fail, because sendopts module never appears on classpath, 
although there is a runtime dependency from the module as well as from the 
test-dependencies. 
Comment 3 Jaroslav Tulach 2006-08-07 14:12:08 UTC
I guess I found the real cause of the problem which was that the sendopts 
module depended on org.netbeans.bootstrap and not org.netbeans.bootstrap/1 

Still the problem is valid usecase as in such case the classpath building 
shall fail with some message.
Comment 4 pzajac 2006-08-09 15:14:06 UTC
Thanks for good catch. BuildException is thrown when ModuleListParser didn't
find entry for code name base.