ANT: My exec target starts a process, and expects further commands from user at the command prompt. Think of it as starting a server. After it's started, I need to provide further commands to this process such as unpack, deploy, stop, start etc... Could someone please show me an example of how this is typically done in ANT? To make it even more challenging, the process may ask for user inputs.
The set of commands below shows what I am trying to automate:
Unix-Prompt> myProcess
==== Welcome to myProcess ===
> unpack myJar.zip
This will overwrite your current install. Are you sure (y/n)?
y
> deploy myApplication
> stop server
Are you sure (y/n)?
y
> start server
> quit
=== Good Bye ===
Unix-Prompt>