We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b80250 commit eb8d5bbCopy full SHA for eb8d5bb
src/java/org/codehaus/groovy/grails/cli/GrailsScriptRunner.java
@@ -563,12 +563,16 @@ private int callPluginOrGrailsScript(String scriptName) {
563
loadScriptClass(gant, scriptName);
564
}
565
catch (ScriptNotFoundException e) {
566
- String fixedName = fixScriptName(scriptName, allScripts);
567
- if (fixedName == null) {
+ if(isInteractive) {
+ String fixedName = fixScriptName(scriptName, allScripts);
568
+ if (fixedName == null) {
569
+ throw e;
570
+ }
571
+
572
+ loadScriptClass(gant, fixedName);
573
+ } else {
574
throw e;
575
-
- loadScriptClass(gant, fixedName);
576
577
578
return executeWithGantInstance(gant, doNothingClosure);
0 commit comments