ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: Counting files from within ant
Date Mon, 15 Oct 2001 13:19:13 GMT
Use cygwin... freely available, powerful, a real bonus to the Windows
platform.

http://sources.redhat.com/cygwin/

-----------------------------------
Jason Rogers
Tumbleweed Communications
Ann Arbor, MI
[mailto:jason.rogers@tumbleweed.com]

-- Keep it simple 
(1 Corinthians 2:2, Galatians 2:20)

    > -----Original Message-----
    > From: Euan Guttridge [mailto:EGuttridge@buildonline.com]
    > Sent: Monday, October 15, 2001 9:20 AM
    > 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
    > 
    > 


Mime
View raw message