Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 72612 invoked from network); 26 Sep 2000 20:25:35 -0000 Received: from web121.yahoomail.com (205.180.60.129) by locus.apache.org with SMTP; 26 Sep 2000 20:25:35 -0000 Received: (qmail 18758 invoked by uid 60001); 26 Sep 2000 20:24:36 -0000 Message-ID: <20000926202436.18757.qmail@web121.yahoomail.com> Received: from [64.163.67.114] by web121.yahoomail.com; Tue, 26 Sep 2000 13:24:36 PDT Date: Tue, 26 Sep 2000 13:24:36 -0700 (PDT) From: Diane Holt Subject: Re: how to make a classpath like "/java/lib/*.jar"? To: ant-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N You can do it using and (I'm pretty sure you need the stuff, since I don't seem to be able to include pipes in lines): (Just be sure everything in java/lib is really what you want :) P.S. All of this assumes latest CVS. Diane --- jtnews wrote: > is there anything in ant that allows you to expand > all the jar files in a directory into a classpath? > > For example, > > if I have a.jar, b.jar, c.jar in /java/lib, > how can I make a classpath like > > /java/lib/a.jar:/java/lib/b.jar:/java/lib/c.jar > > without having to specify each jar file manually? > > Something equivalent to the Bourne shell > > CLASSPATH=`echo /java/lib/*.jar | tr ' ' ':'` > > would be really nice! ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/