Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
Description
an example from IRC - the inner closure class can't see 'recursiveDelete'
#!/usr/bin/env groovy
<bayard> import java.io.File
<bayard> for (arg in this.args)
<bayard> def recursiveDelete(File file) {
<bayard> if( file.isDirectory() ) {
<bayard> file.eachFile
<bayard> }
<bayard> file.delete()
<bayard> }