You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/01/06 15:27:38 UTC

svn commit: r731951 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java

Author: bodewig
Date: Tue Jan  6 06:27:37 2009
New Revision: 731951

URL: http://svn.apache.org/viewvc?rev=731951&view=rev
Log:
most likely fix PR 46480

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java?rev=731951&r1=731950&r2=731951&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java Tue Jan  6 06:27:37 2009
@@ -20,6 +20,7 @@
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.util.FileUtils;
+import org.apache.tools.ant.util.KeepAliveOutputStream;
 import org.apache.tools.ant.util.StringUtils;
 import org.apache.tools.ant.types.EnumeratedAttribute;
 import org.apache.tools.ant.types.FileSet;
@@ -566,7 +567,8 @@
             }
 
             try {
-                PrintStream out = System.out;
+                PrintStream out =
+                    new PrintStream(new KeepAliveOutputStream(System.out));
                 try {
                     if (output != null) {
                         log("Opening PrintStream to output Resource " + output, Project.MSG_VERBOSE);