ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: File Search .
Date Wed, 18 Dec 2002 15:53:43 GMT
C:\ is usually full of files (just do Properties on it to find out how
many!), so searches will be long. Finding a file as nothing to do with the
Windows registry, and most likely shouldn't have anything to do with a build
process!!! Ant is not the right tool for what you seem to be doing I'd say.
--DD

-----Original Message-----
From: Surender Mohan Seshadri [mailto:SSeshadri@gbahn.com] 
Sent: Wednesday, December 18, 2002 9:52 AM
To: Ant Developers List
Subject: RE: File Search .


Hi,
I tried the searching using <fileset>  and as Dominique pointed out, this is
taking quite long time. Is there any way to do it .Can ANT access the
"Windows Registry" to find it ? .

Thank you all for your help in advance .

Thanks
Surender



-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Tuesday, December 17, 2002 5:07 PM
To: 'Ant Developers List'
Subject: RE: File Search .


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 [mailto:SSeshadri@gbahn.com]
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

Thanks
Surender

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message