Skip to content

Commit 76e2f4f

Browse files
committed
calculate interactive system property independently of GrailsConsole
1 parent 060736d commit 76e2f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-bootstrap/src/main/groovy/org/codehaus/groovy/grails/cli/GrailsScriptRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class GrailsScriptRunner {
8484

8585
private PrintStream out = System.out;
8686
private GrailsConsole console = GrailsConsole.getInstance();
87-
private boolean isInteractive = console.isInteractiveEnabled();
87+
private boolean isInteractive = System.getProperty(GrailsConsole.ENABLE_INTERACTIVE) != null ? Boolean.getBoolean(GrailsConsole.ENABLE_INTERACTIVE) : true;
8888
private URLClassLoader classLoader;
8989

9090
private File scriptCacheDir;

0 commit comments

Comments
 (0)