Skip to content

Commit

Permalink
registration of event listener and grailsConfig not tied to Jetty
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Sep 11, 2009
1 parent e4acbbf commit 0f88cc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/_GrailsRun.groovy
Expand Up @@ -144,8 +144,11 @@ runServer = { Map args ->
def message = "Server running. Browse to http://${args.host ?: 'localhost'}:${args.httpPort}$serverContextPath"

EmbeddableServer server = args["server"]
if(server.class.name.contains("Jetty")) {
server.eventListener = this
if(server.hasProperty('eventListener')) {
server.eventListener = this
}
if(server.hasProperty('grailsConfig')) {
server.grailsConfig = config
}

profile("start server") {
Expand Down

0 comments on commit 0f88cc9

Please sign in to comment.