----- Original Message -----
From: "Suu Quan" <[EMAIL PROTECTED]>
To: "ANT user group" <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 1:06 PM
Subject: can't <exec>
> Crying help to this forum
>
> Trying out this simple task/target
>
> <project default='init'>
> <target name='init'>
> <exec executable="execEx" dir="." />
> </target>
> </project>
>
> I get :
> C:\exec-example:4: Execute failed: java.io.IOException: CreateProcess:
> execEx error=2
>
> execEx works perfectly outside of ant.
>
> jakarta1.3.0_02, windows 2000
Got it to work.
Outside of Ant, I was using the MKS korn shell.
So I changed it to
<exec executable="sh.exe" dir=".">
<arg value="execEx" />
</exec>
and it worked