Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 88832 invoked from network); 11 Jun 2009 12:59:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 12:59:58 -0000 Received: (qmail 19375 invoked by uid 500); 11 Jun 2009 13:00:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 19293 invoked by uid 500); 11 Jun 2009 13:00:09 -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 19283 invoked by uid 99); 11 Jun 2009 13:00:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 13:00:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 209.85.221.193 as permitted sender) Received: from [209.85.221.193] (HELO mail-qy0-f193.google.com) (209.85.221.193) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 13:00:01 +0000 Received: by qyk31 with SMTP id 31so2200818qyk.10 for ; Thu, 11 Jun 2009 05:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=FRBSNyQK/K7lrA7fitp/Giim8X9tWRqcUWUbf9CxiYk=; b=EIWjvIKov7rwNWNV1WoJtgjo839BLKSuVg0nz+/3CDV2qrfPJpWU0Eb7LE9T41rZHR 9jIHQWmSsjFY661aAFA/pbm5IpndqD8YGIHZjI+gF2mbk9T1WI6LF51Jilp5IJFGQsmH wEpzdbcGSlIMMmktfABqdXqMQAxeiqvlFrHBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oI1cjnN7eIoLBCQuTj0QZEuTaHDylujZFa32GA1ARMtSuhZO+pn9EI1b/k8Sn32bju hOAHBuPYU/DZ1Prf7dl/uGsXzd6GZfRQ9DOh+nS8X5vd4xF+pOlJwS6zOCg+m3fNNbqr QGigi1kK2zWKnZvzdFELTSowH19uVPWhJSG+M= MIME-Version: 1.0 Received: by 10.224.10.198 with SMTP id q6mr3070376qaq.329.1244725180129; Thu, 11 Jun 2009 05:59:40 -0700 (PDT) In-Reply-To: <2146c1520906102347u16f169dh49d0b3670e7a1554@mail.gmail.com> References: <2146c1520906102347u16f169dh49d0b3670e7a1554@mail.gmail.com> Date: Thu, 11 Jun 2009 08:59:40 -0400 Message-ID: Subject: Re: relative path From: David Weintraub To: Ant Users List Content-Type: multipart/alternative; boundary=0015175ce17034608e046c122aa2 X-Virus-Checked: Checked by ClamAV on apache.org --0015175ce17034608e046c122aa2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Is this Ant "library" build file included with the task? If this is the case, the imported tasks will behave as if they're in the original build file. From the Ant Manual in the task: I*mported files are treated as they are present in the main buildfile.* Otherwise, if you used or , you will need to pass the base directory as a parameter: for common tasks. I've had quite a bit of success defining my main targets ("clean", "compile", "package", "test") in an build.xml, and having the developers use that. It makes creating the project's build.xml much easier and there is less code repetition. On Thu, Jun 11, 2009 at 2:47 AM, divyanshu singh wrote: > i have one ant build file which kind of acts as a library file > > other build files use its ant task how can i adjust the base directory of > library build file to automatically set path to the file which calls its > ant > task > > like if i set property of path to ./hello > > then for library file also the path should remain ./hello relative to the > calling file > -- David Weintraub qazwart@gmail.com --0015175ce17034608e046c122aa2--