Skip to content
Browse files

fix for GRAILS-7997 "having created app initially, run-app fails"

  • Loading branch information...
1 parent 32efdd9 commit b96c878f567729cd380334397cbd338319fa40fe Graeme Rocher committed Sep 20, 2011
View
1 .../main/groovy/org/codehaus/groovy/grails/cli/interactive/GrailsInteractiveCompletor.groovy
@@ -77,6 +77,7 @@ class GrailsInteractiveCompletor extends SimpleCompletor {
static String[] getScriptNames(scriptResources) {
final scriptNames = scriptResources.collect { GrailsNameUtils.getScriptName(it.file.name) }
+ scriptNames.remove('create-app')
scriptNames << "open"
scriptNames as String[]
}
View
7 ...otstrap/src/main/groovy/org/codehaus/groovy/grails/cli/interactive/InteractiveMode.groovy
@@ -75,10 +75,13 @@ class InteractiveMode {
try {
def trimmed = scriptName.trim()
if (trimmed) {
- if ("quit".equals(trimmed)) {
+ if(trimmed.startsWith("create-app")) {
+ error "You cannot create an application in interactive mode."
+ }
+ else if ("quit".equals(trimmed)) {
System.exit(0)
}
- if ("exit".equals(trimmed)) {
+ else if ("exit".equals(trimmed)) {
if (grailsServer) {
try {
updateStatus "Stopping Grails server"

0 comments on commit b96c878

Please sign in to comment.
Something went wrong with that request. Please try again.