ant integration: <input/> task can only read from console once
--------------------------------------------------------------
Key: JRUBY-4827
URL: http://jira.codehaus.org/browse/JRUBY-4827
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.5
Reporter: Jan Berkel
Priority: Minor
An ant task called from Rake which tries to read from console (using <input/>)
succeeds for the first input but fails with "Failed to read input from
Console." at the second.
To reproduce:
build.xml
{code:xml}
<project name="foo">
<target name="test">
<input message="1" addProperty="p.1"/>
<input message="2" addProperty="p.2"/>
</target>
</project>
{code}
Rakefile
{code}
require 'ant'
ant_import
{code}
{noformat}
$ jruby -S rake test --trace
(in /Users/jan/tmp)
** Invoke test (first_time)
** Execute test
test:
1
first line of input
2
rake aborted!
org.apache.tools.ant.BuildException: Failed to read input from Console.
org/apache/tools/ant/input/DefaultInputHandler.java:59:in `handleInput'
org/apache/tools/ant/taskdefs/Input.java:231:in `execute'
org/apache/tools/ant/UnknownElement.java:288:in `execute'
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email