X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4B59EDB5.8020201@gmail.com>
References: <81D39E818991E549B1F66EB6A7D18422BE8626@AVSMOEXCL02.activision.com> 	 <4B57DF25.4040605@gmail.com> 	 <7f95d3561001220517k4fd93c6btdda02fd06596e97f@mail.gmail.com> 	 <20100122154551.GB4020@ednor.casa.cgf.cx> 	 <7f95d3561001220823md77as48d8128d396c8370@mail.gmail.com> 	 <4B59D9FC.3070307@gmail.com> 	 <7f95d3561001220923i60a15fe6u71c36b0baeda3ebe@mail.gmail.com> 	 <4B59E4B2.3050001@gmail.com> 	 <7f95d3561001220955r1c79df20xe76755160a4e32bc@mail.gmail.com> 	 <4B59EDB5.8020201@gmail.com>
Date: Sat, 23 Jan 2010 01:13:25 +0100
Message-ID: <7f95d3561001221613ld403301w163993fbac99beaf@mail.gmail.com>
Subject: Re: Design issue with new MS-DOS style path warning?
From: Eric Vautier <eric.vautier+cygwin@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Tried "bash", "-x", "bash build.sh", "bash -x build.sh", forward
slashes in Windows environment variables, to no avail. But thank you
for your time and patience, Dave!
-e

On Fri, Jan 22, 2010 at 7:25 PM, Dave Korn
<dave.korn.cygwin@googlemail.com> wrote:
> On 22/01/2010 17:55, Eric Vautier wrote:
>> Yes, it's a slightly complicated build script, but it does the job
>> properly when invoked manually. It only fails if it is invoked from
>> inside a wrapping shell script.
>
> =A0That shell script presumably does some stuff first before invoking it;=
 maybe
> that's where the problem originates. =A0Also, you're running it from "sh"=
 in
> that situation, instead of "bash" as you do from the command-line; that m=
ight
> be relevant or might not. =A0("sh" is an alias for "bash" that invokes it=
 with
> slightly-altered behaviour.)
>
>> To sum up: all 5 builds (three maven, two ant) work fine when invoked
>> manually from the command-line. The two ant builds fail in the overall
>> build invocator (build.sh, but I should probably call it
>> build-all.sh), whose sole task is to launch the 5 builds from inside
>> their own directories; the three maven builds are fine.
>>
>> I see no reason why calling that ant build from inside a shell script
>> should mess up the paths with C:\cygdrive\c\dev\ prefixes. build.sh
>> does have #!/bin/sh at the top. Will investigate a little more.
>
> =A0Adding "-x" flag to the shebang might help.
>
>>> =A0 =A0 =A0<property name=3D"common" location=3D"${env.APP4_COMMON_ROOT=
}" />
>>> =A0 =A0 =A0<property name=3D"common-jar" value=3D"${common}/target/Comm=
on.jar" />
>
>>> APP4_COMMON_ROOT =3D C:\dev\prj\app4\Common
>
> =A0Try not using mixed slashes. =A0Both Cygwin and DOS should be fairly h=
appy with
>
> APP4_COMMON_ROOT =3D C:/dev/prj/app4/Common

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

