From 88c3b313e0162f8b1ba60cd3617d9c7d44d04991 Mon Sep 17 00:00:00 2001
From: "Jesse N. Glick"
Date: Thu, 27 Jan 2005 16:36:11 +0000
Subject: [PATCH] Permit to accept standard input from
console. PR: 24918
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277513 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 4 +++
docs/manual/CoreTasks/java.html | 14 ++++-----
.../org/apache/tools/ant/taskdefs/Java.java | 14 +++++----
.../tools/ant/taskdefs/PumpStreamHandler.java | 30 ++++++++++++-------
.../apache/tools/ant/taskdefs/Redirector.java | 11 ++++++-
.../tools/ant/taskdefs/StreamPumper.java | 29 ++++++++++++++++--
6 files changed, 76 insertions(+), 26 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index f20a9469b..2927efe62 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -24,6 +24,10 @@ Changes that could break older environments:
Fixed bugs:
-----------
+* Programs run with can now accept standard input
+ from the Ant console. (Programs run with could
+ already do so.) Bugzilla Report 24918.
+
* Translate task does not remove tokens when a key is not found.
It logs a verbose message. Bugzilla Report 13936.
diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html
index 880f2bb38..f41459272 100644
--- a/docs/manual/CoreTasks/java.html
+++ b/docs/manual/CoreTasks/java.html
@@ -15,10 +15,9 @@ specified.
If odd things go wrong when you run this task, set fork="true" to use a new
JVM.
-Note that you cannot interact with a forked VM, the only way to
-send input to it is via the input and inputstring attributes. Also note that
-in Ant 1.6, any attempt to read input in the forked VM will receive an
-EOF (-1). This is a change from Ant 1.5, where such an attempt would block.
+As of Ant 1.7, you can interact with a forked VM, as well as
+sending input to it via the input
and inputstring
+attributes.
Parameters
@@ -157,14 +156,16 @@ EOF (-1). This is a change from Ant 1.5, where such an attempt would block.
A file from which the executed command's standard input
is taken. This attribute is mutually exclusive with the
inputstring attribute |
- No |
+ No; default is to take standard input from console
+ (unless spawn="true" ) |
inputstring |
A string which serves as the input stream for the
executed command. This attribute is mutually exclusive with the
input attribute. |
- No |
+ No; default is to take standard input from console
+ (unless spawn="true" ) |
newenvironment |
@@ -353,4 +354,3 @@ Reserved.