http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1239
*** shadow/1239 Thu Apr 5 20:24:18 2001 --- shadow/1239.tmp.16675 Thu Apr 5 20:24:18 2001 *************** *** 0 **** --- 1,46 ---- + +============================================================================+ + | JUnitTask does not include its codebase in forked command line | + +----------------------------------------------------------------------------+ + | Bug #: 1239 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: | + | Priority: Component: Optional Tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + If I have placed the optional.jar and junit.jar files into the ant lib + directory so that I can run without these files in my CLASSPATH, I + am still required to do so when the junit task uses fork=true as the + codebase of the junit task is not included in the forked java command + line as shown below. So in order to run the forked junit task I need + the optional.jar and junit.jar in my CLASSPATH which defeats the purpose + of adding these jars to the ant lib directory. + + + build 790>ant -verbose unit-tests + Ant version 1.3 compiled on March 2 2001 + + Buildfile: build.xml + Detected Java Version: 1.3 + Detected OS: Windows 2000 + ... + unit-tests: + [junit] Executing: java -classpath D:\usr\local\src\cvsroot\jBoss\jbosssx\bu + ild\classes;D:\usr\local\src\cvsroot\jBoss\jbosssx\lib\ejb.jar;D:\usr\local\src\ + cvsroot\jBoss\jbosssx\lib\jaas.jar;D:\usr\local\src\cvsroot\jBoss\jbosssx\lib\ja + xp.jar;D:\usr\local\src\cvsroot\jBoss\jbosssx\lib\jdbc2_0-stdext.jar;D:\usr\loca + l\src\cvsroot\jBoss\jbosssx\lib\jmxri.jar;D:\usr\local\src\cvsroot\jBoss\jbosssx + \lib\jta-spec1_0_1.jar;D:\usr\local\src\cvsroot\jBoss\jbosssx\lib\crimson.jar;D: + \usr\local\src\cvsroot\jBoss\jbosssx\lib\log4j.jar;D:\usr\local\src\cvsroot\jBos + s\jboss\dist\lib\ext\jboss.jar;D:\usr\local\src\cvsroot\jBoss\jboss\dist\lib\ext + \jnpserver.jar org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner org. + jboss.test.LoginModulesTest haltOnError=false haltOnFailure=true formatter=org.a + pache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter + [junit] java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/option + al/junit/JUnitTestRunner
