diff --git a/src/etc/testcases/taskdefs/java.xml b/src/etc/testcases/taskdefs/java.xml
index 405586cb4..a5e6ce5c6 100644
--- a/src/etc/testcases/taskdefs/java.xml
+++ b/src/etc/testcases/taskdefs/java.xml
@@ -7,7 +7,7 @@
-
+
@@ -169,105 +169,162 @@
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ ${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
+
+
+
+
+ output="${outfile}"
+ error="${errfile}">
+
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+ ${outfile}:
+"${redirect.out.contents}" expected "foo"
+
+
+
-
+
+ ${errfile} differs from ${outfile}
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+ ${outfile}:
+"${redirector.out.contents}" expected "foo"
+
+
+
+
+
+
+ ${errfile} exists but should not
-
@@ -275,26 +332,41 @@
+
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ ${outfile}:
+"${redirector.out.contents}" expected "foofoo"
+
+
+
-
+
+ ${errfile}:
+"${redirector.err.contents}" expected "bar"
+
-