I have an Exec task that runs a command which, depending on the situation at runtime, may prompt for user confirmation. Running the command alone, the user can choose to type Y or N, the default is N. Running from
Ant, the task always fails if the prompt happens. I am guessing that is because a carriage return, which means N to the prompt, is always fed to it. But what I really want to give it is an Y.
Is there a way to feed a key stroke to the command when it is executed by Ant? Thanks.
T. Anthony Chen<br />---------------<br />SCJP, SCJD, SCBCD, SCWCD, SCEA