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:
==== Welcome to myProcess ===
> unpack myJar.zip
This will overwrite your current install. Are you sure (y/n)?
> deploy myApplication
> stop server
Are you sure (y/n)?
> start server
=== Good Bye ===
Unfortunately, the "Are you sure?" prompts are difficult to answer / bypass. The "y"s in the in.txt are interpreted as separate commands, rather than inputs to the prompts. The in.txt approach helps me execute multiple commands in exec (in my case, sshexec), but doesn't help with the prompts
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Ant - Execute commands inside another EXEC environment