Permalink
Browse files

GrailsInteractiveCompletor - use Resource.getFileName vs. Resource.ge…

…tFile.getName

Error starting grails cli with binary plugin that has scripts
  • Loading branch information...
dsklyut committed Oct 21, 2011
1 parent 25ebc4c commit 92ebc726825e386fb29c71691aa819cc8300c1bb
@@ -80,7 +80,7 @@ class GrailsInteractiveCompletor extends SimpleCompletor {
}
static String[] getScriptNames(scriptResources) {
- final scriptNames = scriptResources.collect { GrailsNameUtils.getScriptName(it.file.name) }
+ final scriptNames = scriptResources.collect { GrailsNameUtils.getScriptName(it.filename) }
scriptNames.remove('create-app')
scriptNames << "open"
scriptNames as String[]

0 comments on commit 92ebc72

Please sign in to comment.