ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@materne.de>
Subject CommandlineJavaTest failed
Date Sat, 06 Sep 2003 14:40:01 GMT

org.apache.tools.ant.types.CommandlineJavaTest failed on my machine
(WinXP, JDK 1.4.2).
It seems the its caused on

    public void testGetCommandline() {
        ...
        assertTrue("junit.jar contained",
               s[3].indexOf("junit.jar"+java.io.File.pathSeparator) >=
0);


The source is the 
       
c.createClasspath(project).setLocation(project.resolveFile("bootstrap/lib/ant.jar"));
line. Prerequisite is build from scratch. Otherwise that "bootstrap"
directory doesn´t
exist.

A change to
        c.createClasspath(project).setLocation(
            project.resolveFile(System.getProperty("ant.home") +
"/lib/ant.jar"));
would resolve that.



Jan

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


Mime
View raw message