I have an ant script which runs an interactive (that requires 2 user inputs) dos batch file using exec task. I tried using attributes 'inputstring' (having 2 inputs (space in between, & in between)) and 'input' (file having 2 entries)
Only the first input is provided by exec task to the batch file, the script waits indefinitely for the second input.
is there a way to provide multiple inputs through exec task (or) is there a dos command to provide inputs for an interactive mode batch?
Snippet 1:
<exec dir="F:/upgrade" executable="cmd.exe" failonerror="true" output="upgrade.out" inputstring ="no&&yes">
<arg line="/c upgrade process F:/script"/>
</exec>
Snippet 2:
<exec dir="F:/upgrade" executable="cmd.exe" failonerror="true" output="upgrade.out" input ="upgrade.input">
<arg line="/c upgrade process F:/script"/>
</exec>
Input File content
no
yes