ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Calling CYGWIN from ANT via EXEC
Date Wed, 14 Apr 2010 18:48:23 GMT

the "religious wars" of cygwin vs windoz...similar to the differences between a ferrari and
a yugo


unix is the ferrari

where yugo is the....

 

*glad to hear that worked for you*
Martin 
______________________________________________ 
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 11:34:12 -0700
> From: elstonkers@yahoo.com
> Subject: Re: Calling CYGWIN from ANT via EXEC
> To: user@ant.apache.org
> 
> Thanks Martin! If I had my choice I'd be running all of my builds from unix. All of it
is deployed to unix. Unfortunately we're using this obtuse application called Versata that
not only forces us to build in winders, but it doesn't support win2k3, only xp. I don't think
it would survive cygwin...
> 
> 
> 
> On Apr 14, 2010, at 11:17 AM, Martin Gainty <mgainty@hotmail.com> wrote:
> 
> 
> i believe the majority of SGML parsers will parse
> &nbsp 
> better known as non-braking space character as 'space character'
> 
> you can also try the old hex 20 e.g.
> &#32;
> 
> if its Windoze folder name try the '8.3 name'
> C:\Documents and Settings 
> becomes
> C:\DOCUME~1
> 
> 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)
> 
> ?
> Martin 
> ______________________________________________ 
> 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: elstonkers@yahoo.com
> Subject: Calling CYGWIN from ANT via EXEC
> To: user@ant.apache.org
> 
> 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_files.sh ${scp.keyfile} ${fileToSCP}
${scp.user} ${scp.remote.host} ${scp.target.dir}"/>
> </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 'myScript.sh "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. 
> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message