Re: Ant task to Count number of files in a directory

2007-10-26 Thread David Weintraub
I think this might help: http://ant.apache.org/manual/CoreTasks/resourcecount.html Here's a snippet I just tested: It's much cleaner than attempting to write a script. On 10/26/07, Sujie <[EMAIL PROTECTED]> wrote: > > Hi

RE: Ant task to Count number of files in a directory

2007-10-26 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 12:19 PM To: Ant Users List Subject: RE: Ant task to Count number of files in a directory /* ... you need = http://jakarta.apache.org/bsf/ http://dist.codehaus.org/jruby/jruby-complete

RE: Ant task to Count number of files in a directory

2007-10-26 Thread Rebhan, Gilbert
Hi, -Original Message- From: Sujie [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 12:09 PM To: user@ant.apache.org Subject: RE: Ant task to Count number of files in a directory /* I get the following error when trying to using ruby as a script language. "unable to l

RE: Ant task to Count number of files in a directory

2007-10-26 Thread Sujie
I get the following error when trying to using ruby as a script language. "unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)" Do i need to import something else? The resource count is not working for me. It always returns 1 irrespective of num

RE: Ant task to Count number of files in a directory

2007-10-26 Thread Rebhan, Gilbert
-Original Message- From: Sujie [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 10:42 AM To: user@ant.apache.org Subject: Ant task to Count number of files in a directory /* Hi I would like to count the number of jar files in a directory. I am using ANT 1.7. */ with ant < 1.