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.
I am using this entry in project.properties to get additional jar (present only in sources, not in build) on classpath: test.unit.cp.extra=${nb_all}/j2ee/external/javaee-api-5.jar It is working nicely when test is invoked from IDE, but from command line I get NoClassDefFoundError on classes from that jar. Example can be found in j2ee/ejbcore. It is quite annoying because basically all tests fail right on start and no real failures are propagated to developers (unless you run it from IDE).
Probably common.xml#do-test-build#shorterpaths is responsible. It stores this file: nb_all\nbbuild\build\testdist/unit/enterprise4/org-netbeans-modules-j2ee-ejbcore/test.properties javaee-api-5.jar is there in extra.test.libs.dir but it is not added to test.unit.run.cp property which is then used for test execution from command-line.
Fixed. Please verify it. Checking in xtest-unit.xml; /cvs/nbbuild/templates/xtest-unit.xml,v <-- xtest-unit.xml new revision: 1.25; previous revision: 1.24 done