ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41024] - Problem with Input task
Date Tue, 31 Jul 2007 13:49:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41024>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41024





------- Additional Comments From richard.ward@jacobsrimell.com  2007-07-31 06:49 -------
I've encountered similar behaviour in version 1.6.5 and 1.7.0 (1.6.2 is ok). It
seems the input has to pass through the hierarchy of forked java calls before
the input is accepted. So 

    <target name="test-forked-inputs">
        <input>Not called java so assuming 1 return to continue.</input>
        <echo>Calling java </echo>
        <java classname="Hello" classpath="." fork="true"/>
        <echo>Calling java for the second time</echo>
        <java classname="Hello" classpath="." fork="true"/>
        <echo>Calling java for the third time</echo>
        <java classname="Hello" classpath="." fork="true"/>
        <echo>Calling java for the fourth time</echo>
        <java classname="Hello" classpath="." fork="true"/>
        <input>Called java 4 times since last input, so assuming 5 returns to
continue (4 for each forked java, plus 1 for the input).</input>
    </target>

requires the return key to be pressed once initially, then 5 times (as the
message says, 4 times for the number of forked java instances, plus one for the
input task itself). Doing either of a) removing the forked attribute or b)
setting inputstring="" in the java call gets around the problem.

IMHO the problem is as likely to be in the java task as in the input task. Ant
1.6.3 saw a fix to the java task [Programs run with <java fork="true"> can now
accept standard input from the Ant console. (Programs run with <java
fork="false"> could already do so.) Bugzilla 24918.]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message