Running Cygwin bash from Ant script

Nicolai Kamenzky
Wed Nov 14 10:56:00 GMT 2007

Hi folks!

In my Ant script I have a target which should
1. Start the Cygwin bash,
2. Change the current directory, and
3. Execute a command.

I have done this previously using the windows console,
but now I want to do the same with the Cygwin bash.

My Ant target looked like this:
<project name="xyz" basedir=".">
	<target name="build">
		<exec dir="." executable="cmd.exe">
			<arg line="/c make"/>

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"/>

Any ideas?


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list