ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dana Rice <>
Subject RE: ant+shell script
Date Tue, 17 Apr 2001 15:32:39 GMT
Yes I'm using MKS. I'm using the exact buildfile that worked on Unix with
<exec dir="." executable="sript.ksh" output="script.err"/>
On windows I get:
Execut failed: CreateProcess: script.ksh error=193
--- Nested Exception --- CreateProcess: script.ksh error=193
	at java.lang.Win32Process.create(Native Method)
I can run the script from the command line if I do:
I saw a simialr Nested issue on Linux a while back and the fix was to use
the shell as the executable(/bin/sh) then use the script as an arguement so
this is what one has:

-----Original Message-----
From: Diane Holt []
Sent: Monday, April 16, 2001 4:56 PM
Subject: RE: ant+shell script

--- Dana Rice <> wrote:
> Dianne, the exec worked find as you explained on Unix but not on
> Windows. Do you know the correct format for executing a shell script
> from Ant on Windows?

Do you have a shell on your Windows machine? (MKS korn-shell, Cygwin
bash?) If you do, then you should be able to run a shell-script the same
way you're doing on Unix -- if you don't, then a shell-script isn't going
to work, with or without Ant.

(P.S. -- that's one "n" :)



Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.

View raw message