Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 16663 invoked from network); 18 May 2007 00:57:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 00:57:57 -0000 Received: (qmail 62237 invoked by uid 500); 18 May 2007 00:58:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62187 invoked by uid 500); 18 May 2007 00:57:59 -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 62176 invoked by uid 99); 18 May 2007 00:57:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 17:57:59 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [65.223.73.226] (HELO mail.brnphoenix.com) (65.223.73.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 17:57:52 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C798E7.83C09CEC" Subject: Directory question Date: Thu, 17 May 2007 17:57:31 -0700 Message-ID: <104BB8A1A506F44BAC29821104FF986A4290D7@brnmail.BRN1.BRNPhoenix.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Directory question thread-index: AceY54PHzgn7jpMdT4KbYl3HvVxcAA== From: "David Alves" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C798E7.83C09CEC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'd like to include a lib directory in my classpath. The problem is I don't know where the lib directory will be. It will either be ../../lib or ../lib, relative to my current path. Is there a way to set a property to whichever of those two exists? =20 For example: =20 /lib /foo/build.xml property would be set to ../lib =20 =20 =20 /lib /foo/bar/build.xml =20 property would be set to ../../lib =20 =20 Here's my attempt, but it doesn't work because properties set inside subant tasks aren't set when subant exits. =20 Finding common directory... Path to lib set to: ${path_to_lib} =20 Two folders up... =20 One folder up... =20 =20 Thanks in advance for your help! =20 Regards, David Alves =20 ------_=_NextPart_001_01C798E7.83C09CEC--