You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ja...@materne.de on 2003/09/06 16:40:01 UTC

CommandlineJavaTest failed

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


Re: CommandlineJavaTest failed

Posted by Stefan Bodewig <bo...@apache.org>.
On Sat, 6 Sep 2003, <ja...@materne.de> wrote:

> Prerequisite is build from scratch. Otherwise that "bootstrap"
> directory doesn´t exist.

That's what I do all the time ...

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

Looks OK.

Stefan

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