Running Cygwin bash from Ant script

Dave Korn dave.korn@artimi.com
Wed Nov 14 13:26:00 GMT 2007


On 14 November 2007 10:10, Nicolai Kamenzky wrote:


> I tried this, but it didn't work:
> <project name="xyz" basedir=".">
> 	<target name="build">
> 		<exec dir="." executable="C:\Program Files\cygwin\bin\bash">
> 			<arg line=" --login -i -c cd /cygdrive/c/
> someFolderToBeTheCurrentDir/; make"/>
> 		</exec>
> 	</target>
> </project>
> 
> Any ideas?

  Try

<arg line=" --login -i -c 'cd /cygdrive/c/someFolderToBeTheCurrentDir/;
make'"/>

  Note quotes make entire command line a single parameter to '-c'.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list