ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <>
Subject Re: Calling CYGWIN from Ant in XP
Date Tue, 04 Aug 2009 21:08:06 GMT
Of course I had to fix the file so that it no longer called cygwin.bat since it's in that shell
now (solve the problem of getting to the shell later)...  So running inside the cygwin shell, running:

<exec dir="/cygwin/home/myuser" executable="" timeout="1000" outputproperty="returnValue"/>

I get:

c:\cygwin\home\myuser\testCYGWIN.xml:3: Execute failed: CreateProcess: error=193

So is there another way to call a unix shell script from windows (locally or on another machine)
and gather the return that works?


From: Eric Fetzer <>
To: Ant Users List <>
Sent: Tuesday, August 4, 2009 2:42:40 PM
Subject: Re: Calling CYGWIN from Ant in XP

Maybe a different issue is under this.  When I run the same build file directly in cygwin,
I get the same error.  From the command line it's fine though.  Does this make more sense?

From: Eric Fetzer <>
To: Ant Users <>
Sent: Tuesday, August 4, 2009 1:55:32 PM
Subject: Calling CYGWIN from Ant in XP

I'm trying to call CYGWIN from Ant in XP unsuccessfully.  I need to run a shell script from
winders that returns a value to me.  Tried:

    <exec dir="C:\cygwin" executable="Cygwin.bat" os="Windows XP" timeout="1000" outputproperty="returnValue">
      <arg line="/cygdrive/c/cygwin/home/myuser/"/>

I get:

C:\BuildDeployScripts\testCYGWIN.xml:3: Execute failed: Crea
teProcess: Cygwin.bat /cygdrive/c/cygwin/home/myuser/ error=2

Any help?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message