This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Running Cygwin bash from Ant script


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]