ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21142] - junit task's classpath doesn't override the existing classpath settings
Date Sun, 29 Jun 2003 16:36:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21142>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21142

junit task's classpath doesn't override the existing classpath settings





------- Additional Comments From antoine@apache.org  2003-06-29 16:36 -------
I have done a simple test on the head revision of ant showing that the nested 
<classpath/> in junit overrides the classpath in which ant is running.
Can it be that the conflicting xerces jar file is actually not coming from ant 
but from, say, the JRE or the J2SDK EE (endorsed directory) ?
Also, run ant with the -verbose option and attach the output to the bug report.
When doing this, you will get lines like that :

    [junit] Implicitly adding C:\ant\lib\junit.jar;C:\ant\lib\ant.jar;C:
\ant\lib\optional.jar to CLASSPATH
    [junit] Executing 'C:\j2sdk1.4.1_02\jre\bin\java.exe' with arguments:
    [junit] '-classpath'
    [junit] 'C:\dev\testant\my.jar;C:\dev\testant;C:\ant\lib\junit.jar;C:
\ant\lib\ant.jar;C:\ant\lib\optional.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'

This should help clarify what is actually happening.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message