Sascha Ernst wrote:
> Perhaps this helps
Wow, that's some crazy code there! :-) Well, it does open a new window, but
unfortunately the original build still doesn't complete in the first
window. Sigh... I'm going to go after the developer who wrote this crazy
java p
o:sst...@us.ibm.com]
Gesendet: Dienstag, 18. August 2009 16:16
An: Ant Users List
Betreff: Re: exec on batch file causes build to hang
David Weintraub wrote:
>
> > Can you run the batch file outside of Ant from the command line without
> the
> > process hanging?
>
I've
David Weintraub wrote:
>
> > Can you run the batch file outside of Ant from the command line without
> the
> > process hanging?
>
I've discovered that running "start IC_start.bat" from the command line
opens the process in a new window and returns control to the executing
window (on Windows XP).
> Another possibility is to surround the task with the
task.
> The task will terminate the task after a certain period
of
> time. I don't know how well it works on Windows.
Nice idea, but:
BUILD FAILED
C:\working\informix\stop_restart.xml:95: waitfor doesn't support the nested
"exec" element.
On Mon, Aug 17, 2009 at 11:00 AM, Scott Stark 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") unt
> 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,
Can you run the batch file outside of Ant from the command line without the
process hanging?
Do you have echo turned on or off in the Batch file? I don't use a Windows
system, so I don't know if the commands echo if echo is on. However, you
sound like you're pretty sure that its the Java task that
Hi David, thank you kindly for the pointer about running batch files on
Windows. However, I get the same results when running my build file from
the command line: the batch file executes (and starts the java process),
but never returns control to the build file, so I have to hit control-C to
exit
You need to read the section about the task for Windows users.
You cannot execute a Batch command directly. You have to call
command.exe and use the /c parameter.
The following is from the task's page:
Windows Users
The task delegates to Runtime.exec which in turn apparently
calls ::CreatePro
I'm not sure if this is an Ant problem or a batch file problem, so I'll
start here -- apologies if it's inappropriate.
I'm using an Ant build file to execute a Windows XP batch file using the
exec command. My target looks something like this:
The problem is, spawn="true" results
10 matches
Mail list logo