From 2f46b6af935dc478c8ccbb6fff44540a6a8519b2 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 6 Jan 2009 14:27:37 +0000 Subject: [PATCH] most likely fix PR 46480 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@731951 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/SQLExec.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java index a33d2e1ea..27371dace 100644 --- a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java +++ b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java @@ -20,6 +20,7 @@ package org.apache.tools.ant.taskdefs; 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 @@ public class SQLExec extends JDBCTask { } 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);