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 104962 - Using ${nb_all} in tests via project.properies
Summary: Using ${nb_all} in tests via project.properies
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: pzajac
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2007-05-28 15:05 UTC by Martin Adamek
Modified: 2007-06-13 13:46 UTC (History)
3 users (show)

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 Martin Adamek 2007-05-28 15:05:25 UTC
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).
Comment 1 Jiri Skrivanek 2007-05-28 16:02:58 UTC
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.
Comment 2 pzajac 2007-06-13 13:46:18 UTC
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