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 14971] New: - <junit> task replaces classpath when includeantruntime && fork="yes" is used
Date Sat, 30 Nov 2002 05:50:14 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=14971>.
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=14971

<junit> task replaces classpath when includeantruntime && fork="yes" is used

           Summary: <junit> task replaces classpath when includeantruntime
                    && fork="yes" is used
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: ledestin@amur.ru


In summary, it just runs java -cp $includedruntime, ignoring what already is in
classpath.

Here's relevant portion target and output:
<target name="test" depends="compile" description="junit test run">
	<echo message="${java.class.path}"/>
	<junit printsummary="withOutAndErr" haltonfailure="true" fork="yes"
includeantruntime="yes">
		<formatter type="plain"/>
		<test name="ledestin.test.JUnitTest"/>
	</junit>
</target>


test:
     [echo] c:\bin\java\ant\lib\xml-apis.jar;c:\bin\java\ant\lib\xercesImpl.jar;
c:\bin\java\ant\lib\optional.jar;c:\bin\java\ant\lib\ant.jar;c:\bin\jdk1.4\lib\t
ools.jar;c:\home\ledestin\projects\tmp\latest.builds;c:\bin\java\ant\lib\ant.jar
;c:\bin\java\ant\lib\optional.jar;c:\bin\java\junit\junit.jar;c:\progra~1\JEDIT4
~1.1PR\jedit.jar;c:\bin\jdk1.4\lib\tools.jar
    [junit] Implicitly adding C:\bin\Java\junit\junit.jar;C:\bin\Java\ant\lib\an
t.jar;C:\bin\Java\ant\lib\optional.jar to CLASSPATH
    [junit] Running ledestin.test.JUnitTest
    [junit] Executing 'C:\bin\jdk1.4\jre\bin\java.exe' with arguments:
    [junit] '-classpath'
    [junit] 'C:\bin\Java\junit\junit.jar;C:\bin\Java\ant\lib\ant.jar;C:\bin\Java
\ant\lib\optional.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'ledestin.test.JUnitTest'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=false'
    [junit] 'haltOnFailure=true'
    [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnit
ResultFormatter'
    [junit] 'showoutput=false'
    [junit] 'formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitRe
sultFormatter,C:\home\ledestin\projects\test\TEST-ledestin.test.JUnitTest.txt'
    [junit] 'propsfile=C:\home\ledestin\projects\test\junit1586260465.properties
'
    [junit]
    [junit] The ' characters around the executable and arguments are
    [junit] not part of the command.
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

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


Mime
View raw message