ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r731951 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
Date Tue, 06 Jan 2009 14:27:38 GMT
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);



Mime
View raw message