ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: [GUMP@vmgump]: Project test-ant (in module ant) failed
Date Fri, 26 Oct 2007 11:26:26 GMT
http://vmgump.apache.org/gump/public/ant/test-ant/gump_work/build_ant_te
st-ant.html 


    [junit] Testsuite:
org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskTest
    [junit] Tests run: 10, Failures: 0, Errors: 1, Time elapsed: 34.687
sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit]
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:194: Compile failed; see the compiler error output for details.)
    [junit] ------------- ---------------- ---------------
    [junit] Testcase:
testFailureRecorder(org.apache.tools.ant.taskdefs.optional.junit.JUnitTa
skTest):	Caused an ERROR
    [junit] The following error occurred while executing this line:
    [junit]
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:194: Compile failed; see the compiler error output for details.
    [junit]
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:223: The following error occurred while executing this line:
    [junit]
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:194: Compile failed; see the compiler error output for details.
    [junit] Caused by:
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:194: Compile failed; see the compiler error output for details.
    [junit] --- Nested Exception ---
    [junit]
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/junit
.xml:194: Compile failed; see the compiler error output for details.
    [junit] 
    [junit] 
    [junit] Test
org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskTest FAILED



java.io.FileNotFoundException:
/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/out/F
ailedTests.java (No such file or directory)
	at
org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.writeJavaCl
ass(FailureRecorder.java:248)



private void writeJavaClass() {
    ...
    File sourceFile = new File((getLocationName() + ".java"));
    ...
    writer = new PrintWriter(new FileOutputStream(sourceFile));
    ...
}
private String getLocationName() {
    locationName = 
       // 1. value of Ant-property ant.junit.failureCollector
       // 2. value of System-property ant.junit.failureCollector
       // 3. defaults to System.getProperty("java.io.tmpdir") +
"FailedTests";
    File locationFile = new File(locationName);
    if (!locationFile.isAbsolute()) {
        File f = new File(getProject().getBaseDir(), locationName);
        locationName = f.getAbsolutePath();
    }
    return locationName;
}



Do you know why there is that IOException?


Jan

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


Mime
View raw message