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 - Unit Test classpath parsing silently ignores mistakes
Summary: Unit Test classpath parsing silently ignores mistakes
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: pzajac
URL:
Keywords:
Depends on:
Blocks: 54161
  Show dependency tree
 
Reported: 2006-08-06 12:59 UTC by Jaroslav Tulach
Modified: 2006-11-03 19:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ZIP file with sources (208.12 KB, application/x-compressed)
2006-08-06 13:05 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
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.