Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 34218 invoked from network); 26 Apr 2006 13:35:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 13:35:58 -0000 Received: (qmail 83255 invoked by uid 500); 26 Apr 2006 13:35:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83210 invoked by uid 500); 26 Apr 2006 13:35:51 -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 83199 invoked by uid 99); 26 Apr 2006 13:35:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 06:35:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of glennoph@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO pproxy.gmail.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 06:35:50 -0700 Received: by pproxy.gmail.com with SMTP id b29so1651542pya for ; Wed, 26 Apr 2006 06:35:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a1e68MbmIxruTT5CDVFt1WrlWB+0zidnEKwaYG52hNldbvmUtJ/JCIJ9wEGz9Z8wetBGFCIUn0Z1NDnyG91LpVozgV8omWUq5ArPE54G4dIYaqmJqzMUWOr+8/NJeQOwyAUOuH5V/nsl8ejPCT43FH77ddaLCUiX+x0AvGtcZ2g= Received: by 10.35.127.7 with SMTP id e7mr418796pyn; Wed, 26 Apr 2006 06:35:30 -0700 (PDT) Received: by 10.35.59.2 with HTTP; Wed, 26 Apr 2006 06:35:30 -0700 (PDT) Message-ID: Date: Wed, 26 Apr 2006 08:35:30 -0500 From: "glenn opdycke-hansen" To: "Ant Users List" Subject: Re: problem with junit/FileNotFound In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30839_1511549.1146058530213" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_30839_1511549.1146058530213 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline That is how i am circumventing the FileNotFound exceptions. If the testing ant script (with junit) is called directly, then relative file paths work OK. If that script is invoked via another ant script then relative paths do not work. Is this a limitation of ant? Perhaps I coded something incorrectly? Is there a know problem? --glenn On 4/26/06, Burgess, Benjamin wrote: > > Where you declare the directory, use > instead of > > Basically, files/directories should be declared using the location > attribute. > > Ben > > -----Original Message----- > From: glenn opdycke-hansen [mailto:glennoph@gmail.com] > Sent: Wednesday, April 26, 2006 7:24 AM > To: ant user > Subject: problem with junit/FileNotFound > > I have several ant scripts that invoke the next ant script via . > The last ant script has a task that invokes Java code. > There is a problem in the Java code that the File class cannot find > the file with a relative path. > I can resolve this by using the complete path to the file. > This problem does not occur if the test ant script is directly > invoked. (sounds like a basedir problem.) > > Suggestions? > > --glenn > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > > ************************************************************** > This message, including any attachments, contains confidential informatio= n > intended for a specific individual and purpose, and is protected by law. = If > you are not the intended recipient, please contact sender immediately by > reply e-mail and destroy all copies. You are hereby notified that any > disclosure, copying, or distribution of this message, or the taking of an= y > action based on it, is strictly prohibited. > TIAA-CREF > ************************************************************** > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_30839_1511549.1146058530213--