On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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?
Most likely it needs to create the directory.
Peter

>
>
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to