>>     [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/optio
>nal/junit
>> .xml:194: Compile failed; see the compiler error output for details.)
>>     [junit] ------------- ---------------- ---------------
>>     [junit] Testcase:
>> 
>testFailureRecorder(org.apache.tools.ant.taskdefs.optional.juni
>t.JUnitTa
>> skTest):        Caused an ERROR
>>     [junit] The following error occurred while executing this line:
>>     [junit]
>> 
>/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optio
>nal/junit
>> .xml:194: Compile failed; see the compiler error output for details.
>>     [junit]
>> 
>/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optio
>nal/junit
>> .xml:223: The following error occurred while executing this line:
>>     [junit]
>> 
>/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optio
>nal/junit
>> .xml:194: Compile failed; see the compiler error output for details.
>>     [junit] Caused by:
>> 
>/srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optio
>nal/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/optio
>nal/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/optio
>nal/out/F
>> ailedTests.java (No such file or directory)
>>         at
>> 
>org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.wr
>iteJavaCl
>> 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


It is the same directory as the source.

junit.xml:

<target name="failureRecorder.prepare">
    <property name="tmp.dir" value="out"/>
    <mkdir dir="${tmp.dir}/org"/>
    <javac srcdir="${tmp.dir}" destdir="${tmp.dir}"/>


<target name="failureRecorder.internal">  
    <property name="tmp.dir" value="out"/>
    <javac srcdir="${tmp.dir}" destdir="${tmp.dir}"/>



Jan

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

Reply via email to