[Anthill] anthill fails with IOException

Mirza Abbas Raza abbasrazam at yahoo.com
Wed May 18 11:45:09 CDT 2005


Hi,

I am trying to execute a batch file from the build.xml
using <exec> task. Anthill fails with the following
message:
Execute failed: java.io.IOException: CreateProcess:
build.bat error=2

The same task works fine if I do it from command line.


Probably this is relevant for fixing the issue. For
manual build, I have a batch file that invokes ant to
build the project. I had to create this batch file
because there seems to be a bug with ant. As ant tries
to build the submodules, it messes up the path and
hence fails. If I manually go to each submodule, it
builds fine. Now, I added a task inside my build.xml
to invoke the batch file, which obviously calls the
build targets in the same build.xml. Kinda circle. It
works from command line manually.

Environment details:
OS: Win2k
Ant: 1.5.3 (have to use it, otherwise Weblogic81 tasks
won't run.)
JDK: 1.4.2

Thanks,
Abbas





More information about the Anthill mailing list