Browse Source

Restore System.in, PR: 22066

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275012 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
2a2141bcb6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/Main.java

+ 2
- 0
src/main/org/apache/tools/ant/Main.java View File

@@ -603,6 +603,7 @@ public class Main implements AntMain {


PrintStream err = System.err; PrintStream err = System.err;
PrintStream out = System.out; PrintStream out = System.out;
InputStream in = System.in;


// use a system manager that prevents from System.exit() // use a system manager that prevents from System.exit()
// only in JDK > 1.1 // only in JDK > 1.1
@@ -668,6 +669,7 @@ public class Main implements AntMain {


System.setOut(out); System.setOut(out);
System.setErr(err); System.setErr(err);
System.setIn(in);
} }
} catch (RuntimeException exc) { } catch (RuntimeException exc) {
error = exc; error = exc;


Loading…
Cancel
Save