Skip to content

Commit

Permalink
Fix for GRAILS-6531: when we restarted the console, we created a new
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pledbrook committed Jul 27, 2010
1 parent 889991f commit d1dd77d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/Console.groovy
Expand Up @@ -32,11 +32,7 @@ target ('default': "Load the Grails interactive Swing console") {
}

target(console:"The console implementation target") {

// classLoader = new URLClassLoader([classesDir.toURI().toURL()] as URL[], rootLoader)
// Thread.currentThread().setContextClassLoader(classLoader)
loadApp()
configureApp()
depends(loadApp, configureApp)

try {
def console = createConsole()
Expand All @@ -55,7 +51,7 @@ target(console:"The console implementation target") {
println "Exiting console"
console.exit()
String scriptText = console.inputArea.text
createConsole()
console = createConsole()
println "Restarting console"
console.run()
console.inputArea.addFocusListener(new ConsoleFocusListener(text:scriptText))
Expand Down

0 comments on commit d1dd77d

Please sign in to comment.