ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Ant task to Count number of files in a directory
Date Fri, 26 Oct 2007 10:18:57 GMT


-----Original Message-----
From: Sujie [] 
Sent: Friday, October 26, 2007 12:09 PM
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
"unable to load a script engine manager (org.apache.bsf.BSFManager or
Do i need to import something else?

The resource count is not working for me. It always returns 1
of number of files in the directory.
<resourcecount property="uninstall-files">
  <filelist dir="${installDir}/uninstall" files="*.jar" />
<echo message="count of files ${uninstall-files}" />

you need =

1. the BeanScriptingFramework (bsf.jar) as for
    all other scripting languages (groovy,javascript,
    beanshell ...), get it here =

2., the contained
    jruby.jar  will be sufficient for your code snippet, but if you need
    more ruby libraries then use
   then you could use those libraries with  'require ...' (like import
in java)
   if in doubt use the complete jar

simply put those jars into %ANT_HOME%/lib and you're ready
to go

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message