ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: File Search .
Date Tue, 17 Dec 2002 22:07:18 GMT
Sounds like a question for ant-user...

Ant has no built-in <find> task. That said, if I were to look for a abc.xml
file anywhere in C:, I'd write a <fileset> like this:

<fileset id="finder" dir="C:\" includes="**/abc.xml" />
<pathconvert property="files-found" refid="finder" />

The property files-found is now either empty, or contains one or more file
paths, in an arbitrary order, all ending in abc.xml.

Making sure there is only one seems possible, but convoluted. The point of
using Ant to find a file is another debate... --DD

-----Original Message-----
From: Surender Mohan Seshadri [] 
Sent: Tuesday, December 17, 2002 4:06 PM
To: Ant Developers List
Subject: File Search .

Hi All,
Can Ant Search for a specific file in C: directory  and give the path of the
file ,if found


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message