Back again
It seams that the code works only for an ant script with only one input.
The flow is wrong because if I put two or more "inputs" in ant, like in the code below, will not work.
I don't know what I did wrong, maybe it is need some communication between the threads? After I typed the second response in the input dialog the string will not go back to the script process and in console I got again and again the last line displayed by the script
ex:
[input] obs1. responde with y/n (y, n)
It is like the response don;t go back to the script. I know that it is possible (the behavior that I want to achieve can be see in Netbeans when a built is run from IDE)
Any hints? Thx in advance.
test.xml source
<?xml version="1.0"?>
<project name="set_package" basedir="." default="test">
<target name="test">
<echo message=""/>
<echo message=""/>
<echo message="Do you want to continue?"/>
<input message="obs0. responde with y/n" validargs="y,n" addproperty="skip"/>
<echo message="${skip}"/>
<echo message="Do you want to continue1?"/>
<input message="obs1. responde with y/n" validargs="y,n" addproperty="skip1"/>
<echo message="${skip1}"/>
<echo message="Do you want to continue2?"/>
<input message="obs2. responde with y/n" validargs="y,n" addproperty="skip2"/>
<echo message="${skip2}"/>
</target>
</project>