Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66609 invoked from network); 2 Feb 2010 18:13:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 18:13:32 -0000 Received: (qmail 27454 invoked by uid 500); 2 Feb 2010 18:13:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 27372 invoked by uid 500); 2 Feb 2010 18:13:31 -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 27362 invoked by uid 99); 2 Feb 2010 18:13:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 18:13:31 +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 pastrylikewolf@gmail.com designates 209.85.216.192 as permitted sender) Received: from [209.85.216.192] (HELO mail-px0-f192.google.com) (209.85.216.192) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 18:13:24 +0000 Received: by pxi30 with SMTP id 30so310941pxi.14 for ; Tue, 02 Feb 2010 10:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=+IX3+5VRrgS171giBK5l3X2PH0fa/XkyMheivlbT77o=; b=sa+rgZcC5+/abhVI9u0VIVsHAUTozmZxPvlsLunto1dTcpKJd6NrMb2/+o1lWS0Lmw QHhjCJlDnvjage0Wj1Jn67ir6PmX6eA37bgHELQZ3EzbwiM75Z0uhHVlWtsYj9KzTQFR TzWj+aT8/1r6txnKRUzF7oEyLI+qNlZB6Ohyg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=k5qFoq55PoyvfmKX7tA2/fUBr1ERws6Eoo732pbVK9GOqOi1H5POYA2gLUhM1jbcQU +AjlYYGgPRmibdOyZ23WBut7nTkd9aVVGir1GfiAu1Y3ofYXILjgaNY4gLzGLorvnQ2d GlO09HuIzsKDQ6O54CbSMpsJxxO8YCSlMxcCw= MIME-Version: 1.0 Sender: pastrylikewolf@gmail.com Received: by 10.142.118.20 with SMTP id q20mr686091wfc.135.1265134384187; Tue, 02 Feb 2010 10:13:04 -0800 (PST) From: Tim Andrianoff Date: Tue, 2 Feb 2010 13:12:44 -0500 X-Google-Sender-Auth: 99a6fe1c86dd0fa8 Message-ID: <4f65a2b31002021012y2030a7e0reae500ff0a6cb38@mail.gmail.com> Subject: Conditional Path To: Ant Users List Content-Type: multipart/alternative; boundary=001636e0b7db900a2c047ea20d31 --001636e0b7db900a2c047ea20d31 Content-Type: text/plain; charset=ISO-8859-1 I'm using a build.xml file that has the following in it: This only works for tomcat 1.5 and below, I think, which have the "common" and "shared" folders in the tomcat root directory (tomcat 1.6 and up have a "lib" folder only under the tomcat root). This build.xml needs to be used by people running old and new Tomcat versions, so I want to be able to check for these directories, and only include them if they are present (otherwise the ant script doesn't work), and otherwise run the equivalent of: But I'm having no luck accomplishing this. Is this possible? If so, how? If this makes no sense to try and do, what am I missing and how should I accomplish this? Thanks. --001636e0b7db900a2c047ea20d31--