Skip to content

Commit

Permalink
Removed unused scripts; Initial support for scripting events.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel H A Lima committed Jun 29, 2011
1 parent 777e5dd commit 9fdcb0c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 369 deletions.
124 changes: 0 additions & 124 deletions scripts/Eclipse.groovy

This file was deleted.

244 changes: 0 additions & 244 deletions scripts/PublishGooglecode.groovy

This file was deleted.

13 changes: 13 additions & 0 deletions scripts/_BatchInit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ props.autoReload = "true".equals(System.getProperty("batch.auto.reload", "false"
props.autoReloadFrequency = 3
props.reloadFilename = ".batch_reload"
props.bootstrapJarExploded = "true".equals(System.getProperty("batch.bootstrap.jar.exploded", "false"))
props.eventsToSuppress = new LinkedHashSet()

includeTargets << grailsScript("_GrailsEvents")

target(_batchStartLogging: "Bootstrap logging") {
/*
Expand All @@ -52,4 +55,14 @@ target(_batchStartLogging: "Bootstrap logging") {
// setup default logging
new Log4jConfig().configure()
}*/
}

/* Overwrite _GrailsEvents.groovy closure. */
event = {String name, args ->
//println "event ${name} ${args}"
if (!props.eventsToSuppress.contains(name)) {
eventListener.triggerEvent(name, * args)
} /*else {
println "supressing..."
}*/
}
Loading

0 comments on commit 9fdcb0c

Please sign in to comment.