Bug 109450 - unable to run unit tests due to classpath problems
Summary: unable to run unit tests due to classpath problems
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-07 22:12 UTC by Vadim Nasardinov
Modified: 2007-04-18 16:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-03 18:36:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Vadim Nasardinov 2003-11-07 22:12:12 UTC
Trying to run

$ ant -Djunit.suite=KernelSuite.class runtests

Results in the following error:

BUILD FAILED
file:/var/ccm-devel/dev/vadim/dev/build.xml:1241:
 Could not create task or type of type: junit.

I have junit.jar available at the following location:

$ rpm -ql ccm-config-libs | grep junit.jar
/usr/share/java/junit.jar

The only place where the /usr/share/java directory is mentioned in
$CCM_DEVEL_HOME is in $CCM_DEVEL_HOME/ccm.classpath.  However,
$CCM_DEVEL_HOME/build.xml contains no references to ccm.classpath.
Thus, junit.jar is never added to the classpath.

The problem goes away if I do:

$ env CLASSPATH=$CLASSPATH:/usr/share/java/junit.jar \
  ant -Djunit.suite=KernelSuite.class runtests

Comment 1 Vadim Nasardinov 2005-08-03 18:36:58 UTC
stale


Note You need to log in before you can comment on or make changes to this bug.