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 44373 invoked from network); 31 Oct 2000 23:12:01 -0000 Received: from unknown (HELO tanya-hide.medimom.com) (209.244.186.19) by locus.apache.org with SMTP; 31 Oct 2000 23:12:01 -0000 Received: from bettie-nice.medimom.com ([63.209.170.37]) by tanya-hide.medimom.com (8.9.3/8.9.3) with SMTP id SAA29364 for ; Tue, 31 Oct 2000 18:11:58 -0500 Received: (qmail 24022 invoked by uid 0); 31 Oct 2000 23:11:30 -0000 Received: from unknown (HELO flashcom.net) (foobar@63.248.184.53) by 10.192.1.110 with SMTP; 31 Oct 2000 23:11:30 -0000 Sender: nwc@tanya-hide.medimom.com Message-ID: <39FF51A2.4E37D10E@flashcom.net> Date: Tue, 31 Oct 2000 18:11:30 -0500 From: Nicholas Christopher Reply-To: nwc@medimom.com X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.0-test7 i686) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Hostname and loops References: <39FEE3CA.2C5BD1BD@flashcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Stefan Bodewig wrote: > > >>>>> "NC" == Nicholas Christopher writes: > > NC> I realize I can -DHOSTNAME=xxxx on ant's command line but is > NC> there a way for to stuff InetAddress.getLocalHost().getHostName() > NC> into a property? > > No, but writing a task to do so would be trivial. > Not trivial enough :-) Tasks seem easy but I couldn't immediately see how a task could set a property. > NC> - loops > > Aargh! Sorry, forget that 8-). > > NC> We had operations that looped over lists of items, like copy all > NC> the files in the selected sub directories bin,etc,lib > NC> etc. (i.e. not all the sub directories just some) Can I build a > NC> fileset that I could feed to the copy task that would do that? > > I think you could, something like > > > > > > > > NC> It seemed I wanted a fileset made up of several filesets > > You can specify more than one fileset for as well. Thanks. This seems to me a little cloudiness with ant. Javac uses multiple tags, javadoc , etc. It be nice is there was a single consistant file list mechanism.