On Jul 20, 2009, at 11:50 AM, Russel Winder wrote:

Trying to remove settings.gradle from a build, I thought I would try:

        buildscript {
           dependencies {
classpath files ( new File ( coberturaHome , 'jar' ) ).listFiles ( [ accept : { File dir , String name -> ( name =~ '\\.jar$' ).find ( ) } ] as FilenameFilter ) as List
           }
         }

i.e. put all the jars in a given directory onto the classpath. However
this gives me the following, which would not come under the heading of
most informative error message :-(

Any insights or advice greatfully accepted.

One bracket needs to be at a different place and the as clause is not needed:

files ( new File ( coberturaHome , 'jar' ) .listFiles ( [ accept : { File dir , String name -> ( name =~ '\\.jar$' ).find ( ) } ] as FilenameFilter ))

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to