Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 16831 invoked from network); 10 Jul 2009 18:29:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 18:29:05 -0000 Received: (qmail 56622 invoked by uid 500); 10 Jul 2009 18:29:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 56531 invoked by uid 500); 10 Jul 2009 18:29:13 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 56521 invoked by uid 99); 10 Jul 2009 18:29:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 18:29:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 18:29:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MPKpv-0004NQ-NH for user@ant.apache.org; Fri, 10 Jul 2009 11:28:43 -0700 Message-ID: <24432496.post@talk.nabble.com> Date: Fri, 10 Jul 2009 11:28:43 -0700 (PDT) From: starkc To: user@ant.apache.org Subject: Re: ant unable to find build.xml in another directory? In-Reply-To: <255d8d690907101107s6ecedcc0nc26012d20ac91f6a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: starkc@tessco.com References: <24428338.post@talk.nabble.com> <24429737.post@talk.nabble.com> <255d8d690907101107s6ecedcc0nc26012d20ac91f6a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ddevienne wrote: >=20 > On Fri, Jul 10, 2009 at 10:31 AM, starkc wrote: >> Here is the resulting log when running that new command with the -verbos= e >> flag. =C2=A0I dont believe I missed anything... >> >> maint: >> =C2=A0 =C2=A0 [exec] Current OS is Windows XP >> =C2=A0 =C2=A0 [exec] Executing 'cmd' with arguments: >> =C2=A0 =C2=A0 [exec] '/c' >> =C2=A0 =C2=A0 [exec] 'ant.bat' >> =C2=A0 =C2=A0 [exec] 'ejb' >> =C2=A0 =C2=A0 [exec] >> =C2=A0 =C2=A0 [exec] The ' characters around the executable and argument= s are >> =C2=A0 =C2=A0 [exec] not part of the command. >> =C2=A0 =C2=A0 [exec] Buildfile: build.xml does not exist! >> =C2=A0 =C2=A0 [exec] Build failed >=20 > It doesn't say in which directory it executes the command. I thought > it did, strange. > The error message indicates to me the sub-process's current directory > is not what > it should be, although I'm not sure as to why. >=20 > Work-around it using a command line like "cmd /c cd /d absdir && ..." > (basically what > WinNTCommandLauncher does in the latest code), or by adding an explicit > build > file arg with an absolute path (see > http://ant.apache.org/manual/running.html and -f) >=20 > You may also want to play with the vmlauncher attribute. --DD >=20 > PS: Use to generate absolute filenames. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 Using "-f [path-to-buildfile]" worked, but it seems like there should be a way for me to do this without resorting to absolute paths. Shouldn't this be somewhat portable? My main concern is that everyone else on my team has this working just the way it is, and I do not. It seems like it must be a versioning issue or environment issue, not the way the build.xml is structured... --=20 View this message in context: http://www.nabble.com/ant-unable-to-find-buil= d.xml-in-another-directory--tp24428338p24432496.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org