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). So this does what I want. However, when I try and
do this from an Ant task, I get this error:
BUILD FAILED
C:\working\informix\stop_restart.xml:98: Execute failed:
java.io.IOException: CreateProcess: start C:\VCC\IC_start.bat error=2
Any idea what "error=2" means, and how I can fix it?
Here's my task FYI:
<exec executable="start"
failonerror="${failonerror}"
failifexecutionfails="${failifexecutionfails}"
dir="${VCC_CBU_ICdir_root}">
<arg value="${VCC_CBU_ICdir_root}${file.separator}IC_start.bat"/>
</exec>
thanks!
Scott