ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: Calling CYGWIN from ANT via EXEC
Date Wed, 14 Apr 2010 17:17:44 GMT

i believe the majority of  SGML parsers will parse
better known as non-braking space character as 'space character'

you can also try the old hex 20 e.g.

if its Windoze folder name try the '8.3 name'
C:\Documents and Settings 

dumb question but i have to ask why not launch cygwin beforehand and run your ant scripts
from there?
(at least you would have the same JVM and classloader)

Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.

> Date: Wed, 14 Apr 2010 08:26:50 -0700
> From:
> Subject: Calling CYGWIN from ANT via EXEC
> To:
> It's actually much easier to use CYGWIN from Ant than stated in the documentation with
the <exec> task.  Here is an example of using Ant to run a shell script via CYGWIN (be
sure the shell script is formatted for unix):
>                    <exec executable="c:\cygwin\bin\bash.exe">
>                      <arg value="--login"/>
>                      <arg value="-c"/>
>                      <arg value="/cygdrive/c/BuildDeployScripts/ ${scp.keyfile}
${fileToSCP} ${scp.user} ${} ${}"/>
>                    </exec>
> Note that all arguments to the script in this case must be on the same <arg> as
the script file or they won't show up as args to the script, but rather, args to bash.  I
haven't figured out how to send an argument with spaces in it, but I'm sure you Ant guru's
could tell me.  Any help there?  I tried ' "argument with spaces" arg2', but that
didn't work.  CYGWIN wants spaces escaped.
> Thanks,
> Eric
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message