ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Stark <sst...@us.ibm.com>
Subject Re: exec on batch file causes build to hang
Date Tue, 18 Aug 2009 14:16:10 GMT

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

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