Skip to content

Commit d1dd77d

Browse files
committed
Fix for GRAILS-6531: when we restarted the console, we created a new
instance and prepped is as we should. We then promptly ran the old instance of the console. Doh! Simple missing assignment that I've now added.
1 parent 889991f commit d1dd77d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/Console.groovy

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ target ('default': "Load the Grails interactive Swing console") {
3232
}
3333

3434
target(console:"The console implementation target") {
35-
36-
// classLoader = new URLClassLoader([classesDir.toURI().toURL()] as URL[], rootLoader)
37-
// Thread.currentThread().setContextClassLoader(classLoader)
38-
loadApp()
39-
configureApp()
35+
depends(loadApp, configureApp)
4036

4137
try {
4238
def console = createConsole()
@@ -55,7 +51,7 @@ target(console:"The console implementation target") {
5551
println "Exiting console"
5652
console.exit()
5753
String scriptText = console.inputArea.text
58-
createConsole()
54+
console = createConsole()
5955
println "Restarting console"
6056
console.run()
6157
console.inputArea.addFocusListener(new ConsoleFocusListener(text:scriptText))

0 commit comments

Comments
 (0)