ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: Counting files from within ant
Date Mon, 15 Oct 2001 13:25:00 GMT
Cygwin ;)

> -----Original Message-----
> From: Euan Guttridge [mailto:EGuttridge@buildonline.com]
> Sent: Monday, 15 October 2001 2:20 pm
> To: 'ant-user@jakarta.apache.org'
> Subject: RE: Counting files from within ant
> 
> 
> Hi,
> 
> Unfortunately I need to run the script on NT. Any other suggestions?
> 
> 
> --- Euan Guttridge <EGuttridge@buildonline.com> wrote:
> > My ant script fetches a group of labelled files for 
> release, but I would
> > then like to be able to **count recursively from a root 
> directory the
> > number of files fetched** - and compare this with the 
> number supposed
> > to have been fetched (as an integrity check), all within 
> the ant script.
> > Aside from using Perl or Windows Scripting Host, can anyone 
> think of an
> > easy(er) method??
> 
> How platform-independent do you need to be? If you're 
> unix-only, you could
> just <exec> a 'sh -c "find . -type f | wc -l"' with the 
> "outputproperty"
> attribute set, then use <condition> (assuming you're running 1.4) to
> compare the value of your "integrity check" property with the
> "outputproperty" property.
> 
> Diane  
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

Mime
View raw message