Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 30357 invoked from network); 19 Dec 2002 23:19:37 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 19 Dec 2002 23:19:37 -0000 Received: (qmail 2359 invoked by uid 97); 19 Dec 2002 23:20:39 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 2232 invoked by uid 97); 19 Dec 2002 23:20:38 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 2094 invoked by uid 98); 19 Dec 2002 23:20:37 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <002901c2a7b5$1043c070$6707a8c0@db5> From: "Guy Rouillier" To: "Ant Users List" References: <00c501c2a64a$afc80ff0$3c01a8c0@W2KPRO> Subject: Re: Filesets for echo and available? Date: Thu, 19 Dec 2002 18:19:22 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 X-OriginalArrivalTime: 19 Dec 2002 23:19:22.0465 (UTC) FILETIME=[1053ED10:01C2A7B5] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Joey, thanks for the idea. I could use a fileset to initially define my list of files, then define the classpath from that. Using your idea below, I could define a property for that classpath and echo that property. I think this will produce a typical classpath, i.e., with all files run together, separated by a colon - not as easy to read, but containing the same information. But it looks like available will still require me to specify another whole set. Your idea below of checking for a class in the classpath doesn't appear to save any work. If I had 20 jars I wanted to check for, I'd need 20 available statements, either one per jar or one per class. Plus I'd now have to identify a distinct class per jar. I think I'll submit a suggestion to enhance available to check for filesets as well as individual files. ----- Original Message ----- From: "Joey Gibson" To: "Ant Users List" Sent: Wednesday, December 18, 2002 9:06 AM Subject: Re: Filesets for echo and available? > On Tue, 17 Dec 2002 23:05:21 -0500, "Guy Rouillier" > wrote: > > ||| The issue I have is that in order > ||| to do this, I've had to list my jar files 3 different times: for the echo, > ||| for the condition, and finally for the classpath. > > Instead of doing available on the individual jars, why not create your > classpath and then check if a specific class that would be in each jar is > available. For example > > > > > > > > > > > > > > > > > > > > > Then you would only have the jars listed in one place, the classpath. Your > echos could be take care of in two statements. Put this > > > > in your init. It just creates a property "alias" for the classpath you just > created and then put this > > > > wherever you want to echo the value. It will print out the classpath, which > is essentially what your echos were doing anyway. > > Does that help? > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: