Re: Counting files in a dir

2005-04-06 Thread Fermin Da Costa
On Apr 6, 2005 4:33 PM, Matt Benson <[EMAIL PROTECTED]> wrote: > --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > > > The scenario you describe seem to point to file > > selectors. In Ant, you > > usually don't loop on dirs, doing some conditional > > processing within the > > loop, you select

RE: Counting files in a dir

2005-04-06 Thread Matt Benson
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > The scenario you describe seem to point to file > selectors. In Ant, you > usually don't loop on dirs, doing some conditional > processing within the > loop, you select all the files to process using > s, which with > selectors can do this select

RE: Counting files in a dir

2005-04-06 Thread Dominique Devienne
> From: Fermin Da Costa Gomez [mailto:[EMAIL PROTECTED] > Maybe i did not explain my requirement well enough. > The thing is that i am looping through a series of dirs and *if* they > contain 1 or more TestStubs they need to be put in a suite. > ... > delimiter="${path.separator}" /> > ... > > >

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa Gomez
Matt Benson wrote: --- Fermin Da Costa Gomez <[EMAIL PROTECTED]> wrote: Hi, What would be the best way to do the following: 1. Going into a directory (this is ok) 2. Counting the number of files of type x (getting files is ok, *counting* is an issue) With Ant 1.6.3 (now in beta) you could

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa Gomez
Ivan Ivanov wrote: Fermin, you should check[1] to see the exact versions of the third party libraries. Thank you. I found that out by reading through the apache site and doing some more googling. Turns out that i needed 3 additional jars of which the Rhino one was unusal. But, i'v got it runnin

Re: Counting files in a dir

2005-04-05 Thread Matt Benson
--- Fermin Da Costa Gomez <[EMAIL PROTECTED]> wrote: > Hi, > > What would be the best way to do the following: > 1. Going into a directory (this is ok) > 2. Counting the number of files of type x (getting > files is ok, *counting* is an > issue) With Ant 1.6.3 (now in beta) you could do this:

Re: Counting files in a dir

2005-04-05 Thread Ivan Ivanov
Fermin, you should check[1] to see the exact versions of the third party libraries. I use successfully such scripts with Eclipse, but I do not used the ant distribution bundled with Eclipse. Instead, I have "standalone" ant installation on my disk and I configured Eclipse to use it. I point Ant Hom

Re: Counting files in a dir

2005-04-05 Thread Fermin Da Costa
Thx a lot, much appreciated. I have not been able to run it yet though because running it from eclipse i keep on getting errors. 1st was bsf related, fixed that. Than i got a rhino error, fixed that by stuffing the js.jar in there. Now i get a NoSuchMethod error. Haven't done this one yet. Well,

Re: Counting files in a dir

2005-04-05 Thread Ivan Ivanov
Hello, Fermin, You can do 2. with javascript: $${xmlfiles} is ${xmlfiles} $${txtfiles} is ${txtfiles} In fact, I often need to extract information about files and I thought to do a "lib" of s like the one above to improve reusability. However, I