Bug 2738 - Passing of Streams to core tasks are not good (specially passing input stream to a java task is not possible)
Summary: Passing of Streams to core tasks are not good (specially passing input stream...
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.3
Hardware: All All
: P1 enhancement with 4 votes (vote)
Target Milestone: 1.6
Assignee: Ant Notifications List
URL:
Keywords:
: 5417 14756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-07-23 07:09 UTC by Pierre.Jourdan
Modified: 2008-02-22 12:18 UTC (History)
3 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre.Jourdan 2001-07-23 07:09:09 UTC
Ant is so good, that I use it to launch java programs (with the java core task).
Problem: The Output and Error Stream of the java tasks are merged into the 
system standard output stream, removing any change to make a distinction between 
them. 
The Input stream is not passed at all, thus make it impossible to launch a 
java program that want to use the standard input stream !

I hope it was not made on purpose and is just two lines of code to add in files:
/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java and Java.java

Hope to see that as a fix in 1.3
Comment 1 Stefan Bodewig 2001-09-27 06:39:16 UTC
degrading to Enhancement - even though it is a very important issue.
Comment 2 Stefan Bodewig 2001-12-14 07:56:34 UTC
*** Bug 5417 has been marked as a duplicate of this bug. ***
Comment 3 Conor MacNeill 2003-02-09 12:22:06 UTC
It was more than just two lines of code but it is now done. You can specify the
input stream, separate the output and error streams. Implemented in Ant 1.6
Comment 4 Stefan Bodewig 2003-02-18 14:55:38 UTC
*** Bug 14756 has been marked as a duplicate of this bug. ***