Hello: I have a Java class which is an (interactive) command processor. The program prompts the user by sending "> " to the System.out (without a newline). The user enters a command on standard input and the results are sent back to System.out.
If I use <java> to launch this class (with -emacs), everything works pretty well except that the command prompt is not seen until a command is entered. After the command is entered by the user, the command prompt appears with the response. If I use <exec>, I know that stdin/stdout are not automatically attached to the launched process. Is there a way to wire up standard in/standard out to the launched process? <redirector> and the "input"/"output" attributes seem to only work on the concept of a file. Is there an easy way to do this? I'm experimenting with a custom Input Handler, but that doesn't seem to be used with <java> or <exec>. Is that right? Is there a way to create a custom <redirector> to do this? I know that Ant was designed to work in an automated (no user input) fashion, but there must be someway to use Ant to launch this process and have it still connected to the terminal. Thanks, Glenn -- View this message in context: http://www.nabble.com/Using-Ant-to-invoke-a-command-processor-t1375917.html#a3693436 Sent from the Ant - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
