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 96078 invoked from network); 6 Feb 2003 19:01:36 -0000 Received: from unknown (HELO mappin.emap.com) (217.33.194.226) by daedalus.apache.org with SMTP; 6 Feb 2003 19:01:36 -0000 Received: from mimesweeper03.emap.com ([10.101.10.70]) by gateway.mappin.emap.com with ESMTP id <119369>; Thu, 6 Feb 2003 18:59:14 +0000 Received: from isexchmailgate.emap.com (unverified) by mimesweeper03.emap.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Thu, 6 Feb 2003 18:58:18 +0000 Received: by ISEXCHMAILGATE with Internet Mail Service (5.5.2653.19) id <1M09Q7G8>; Thu, 6 Feb 2003 18:58:18 -0000 Message-ID: From: Dan Gardner To: 'Ant Users List' Subject: RE: multiple file check Date: Thu, 6 Feb 2003 18:58:18 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks this is working a treat; >>Martin, I suspect your option would work as well, but its nice to keep it purely in ANT until I *have* to get more complex :). _______________________________ Dan Gardner Emap IT - UK >-----Original Message----- >From: Dominique Devienne [mailto:DDevienne@lgc.com] >Sent: 06 February 2003 18:06 >To: 'Ant Users List' >Subject: RE: multiple file check > > >Just define a with a selector. To check >whether this >selected any files, Then the fileset to a string >property, and >check with / whether the string is empty or >not. --DD > >-----Original Message----- >From: Dan Gardner [mailto:Dan.Gardner@emap.com] >Sent: Thursday, February 06, 2003 11:58 AM >To: 'ant-user@jakarta.apache.org' >Subject: multiple file check > >I would like to compare two directories and see if any files >in directory_A >exist in directory_B. > >Is this possible ? > >One way would be to use an exec task to run an OS script: >Something along the lines of "ls -R1 > filelist.txt" against >directory_A and >then use this list for a find command against directory_B. >But does ANT >have a task I'm unaware of ? > >_______________________________ >Dan Gardner Emap IT - UK > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: ant-user-help@jakarta.apache.org > ** For great Emap magazine subscription & gift offers visit http://www.emapmagazines.co.uk ** -------------------------------------------------------------------------------- The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Emap plc and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation. --------------------------------------------------------------------------------