On Mon, Aug 17, 2009 at 11:00 AM, Scott Stark <[email protected]> wrote:
>
> > Can you run the batch file outside of Ant from the command line without
> the
> > process hanging?
>
> Hi David, technically, yes. But the process (batch file) doesn't "hang"; it
> executes a java tool and holds that state ("running") until the process is
> terminated by another batch file. In other words, the java process is
> running correctly, but even within the batch file, control is not returned
> to the command line, which is why I was hoping to "spawn" it (which I can
> do with other batch/java processes). Unfortunately I didn't write the batch
> file or the java tool so I'm unclear what's happening.
>
> I might look into running it from the <java> task -- thanks for the tip.
Another possibility is to surround the <exec> task with the <waitfor> task.
The <waitfor> task will terminate the <exec> task after a certain period of
time. I don't know how well it works on Windows.
--
David Weintraub
[email protected]