Just define a <fileset> with a <present> selector. To check whether this
selected any files, Then <pathconvert> the fileset to a string property, and
check with <condition>/<equals> whether the string is empty or not. --DD

-----Original Message-----
From: Dan Gardner [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 11:58 AM
To: '[EMAIL PROTECTED]'
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to