Skip to content
Browse files

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

…tFile.getName

Error starting grails cli with binary plugin that has scripts
  • Loading branch information...
1 parent 25ebc4c commit 92ebc726825e386fb29c71691aa819cc8300c1bb @dsklyut dsklyut committed Oct 21, 2011
View
2 .../main/groovy/org/codehaus/groovy/grails/cli/interactive/GrailsInteractiveCompletor.groovy
@@ -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.
Something went wrong with that request. Please try again.