ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: exec on batch file causes build to hang
Date Mon, 17 Aug 2009 15:23:25 GMT
On Mon, Aug 17, 2009 at 11:00 AM, Scott Stark <sstark@us.ibm.com> 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
qazwart@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message