This happens on Lawrence, where there are spaces in the paths of Java, ant and Tomcat.(Program Files).
And he sees mantis.milton.tesk returning error code 2.
This is probably caused by the definition of task. Suggested imporvments:
1). Put double quotes around name of executable(which is ant);
2). Put double quotes around classpath(which can include ant).