Browse Source

most likely fix PR 46480

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@731951 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
2f46b6af93
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/SQLExec.java View File

@@ -20,6 +20,7 @@ package org.apache.tools.ant.taskdefs;
import org.apache.tools.ant.BuildException; import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project; import org.apache.tools.ant.Project;
import org.apache.tools.ant.util.FileUtils; 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.util.StringUtils;
import org.apache.tools.ant.types.EnumeratedAttribute; import org.apache.tools.ant.types.EnumeratedAttribute;
import org.apache.tools.ant.types.FileSet; import org.apache.tools.ant.types.FileSet;
@@ -566,7 +567,8 @@ public class SQLExec extends JDBCTask {
} }


try { try {
PrintStream out = System.out;
PrintStream out =
new PrintStream(new KeepAliveOutputStream(System.out));
try { try {
if (output != null) { if (output != null) {
log("Opening PrintStream to output Resource " + output, Project.MSG_VERBOSE); log("Opening PrintStream to output Resource " + output, Project.MSG_VERBOSE);


Loading…
Cancel
Save