| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <4A00B393-DD8B-403D-99BA-F90F9985AB1C AT inf DOT fu-berlin DOT de> |
| Subject: | RE: Running Cygwin bash from Ant script |
| Date: | Wed, 14 Nov 2007 10:58:47 -0000 |
| Message-ID: | <01a301c826ad$55057d80$2e08a8c0@CAM.ARTIMI.COM> |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <4A00B393-DD8B-403D-99BA-F90F9985AB1C@inf.fu-berlin.de> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |