Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49289 invoked from network); 22 Jun 2004 16:04:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Jun 2004 16:04:28 -0000 Received: (qmail 50718 invoked by uid 500); 22 Jun 2004 15:16:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 81975 invoked by uid 500); 22 Jun 2004 15:03:53 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 86965 invoked by uid 99); 22 Jun 2004 14:45:41 -0000 Received: from [205.158.62.78] (HELO smtp1.us4.outblaze.com) (205.158.62.78) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 22 Jun 2004 07:45:41 -0700 Received: (qmail 14682 invoked from network); 22 Jun 2004 14:45:32 -0000 Received: from unknown (HELO puck.earthling.net) (wascallywabbit:earthling.net?mail.com@24.44.179.36) by smtp1.us4.outblaze.com with SMTP; 22 Jun 2004 14:45:32 -0000 Message-Id: <6.1.1.1.2.20040622104443.028b7cc8@pop1.mail.com> X-Sender: wascallywabbit:earthling.net#mail.com@pop1.mail.com X-Mailer: QUALCOMM Windows Eudora Version 6.1.1.1 Date: Tue, 22 Jun 2004 10:46:14 -0400 To: "Ant Users List" From: Wascally Wabbit Subject: Re: Question about Basedir In-Reply-To: <40D7FAC0.80704@apache.org> References: <40D7BD77.8090102@granitepeaks.com> <40D7FAC0.80704@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 05:24 AM 6/22/2004, you wrote: >Christian Cryder wrote: > >>(EventBuilder is a custom taskdef which internally creates a dir by >>doing something like this: >> String targetPackage = cs.eventPackage.replace('.','/'); >> File targetPath = new File(sourceOutDir+"/"+targetPackage); > >Instead of the above line you could try the following: > > File basedir = getProject().getBaseDir(); > File targetPath = new File( basedir, targetPackage ); > >Steve. Or just: File targetPath = getProject().resolveFile(targetPackage); The Wabbit --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org