${outfile}:
"${redirect.out.contents}" expected "foo"
redirect.err="${redirect.err}" should be empty
${outfile}:
"${redirect.out.contents2}" expected "foobar"
redirect.err="${redirect.err}" should be empty
${outfile}:
"${redirect.out.contents}" expected "foo"
${errfile} differs from ${outfile}
${outfile}:
"${redirector.out.contents}" expected "foo"
${errfile} exists but should not
${outfile}:
"${redirector.out.contents}" expected "foofoo"
${errfile}:
"${redirector.err.contents}" expected "bar"
import java.nio.file.Files;
import java.nio.file.Paths;
import java.io.BufferedWriter;
public class A {
public static void main(String[] args) throws Exception {
final String outFile = args[0];
try(BufferedWriter bw = Files.newBufferedWriter(Paths.get(outFile));) {
bw.write("Hello world!");
}
}
}
Java source-file execution did not yield the expected
result
public class ThrowsException {
public static void main(String[] args) throws Exception {
throw new RuntimeException("Wasn't expected to be run");
}
}
Execution of java task, for sourcefile, was expected to fail since fork wasn't set
Execution of java task, for sourcefile, was expected to fail since classname attribute was set
Execution of java task, for sourcefile, was expected to fail since jar attribute was set
Execution of java task, for sourcefile, was expected to fail since module attribute was set