ant exec problems with jdk1.2.2



Hi,

I am currently automating a legacy product with Ant1.5.4(cannot use 1.6
due to some dependencies)

My build file:
Code:
-------------------------------------------------------------------

<project name="mytest" default ="test" basedir=".">
<target name="test">
<exec executable="myapp" failonerror="true">
<arg line="-opts"/>
</exec>
</target>
</project>

-------------------------------------------------------------------


This command works fine outside ant. But when I run ant with this file
I get the following errors.

Buildfile: mybuild.xml

test:

BUILD FAILED
file mybuild.xml:4: exec returned: -1

Total time: 1 second

However if I use jdk1.3 or 1.4 then I don't see this problem.

Any help is very much appreciated

Cheers,
Ay

.



Relevant Pages