public class GrailsBuildEventListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<groovy.lang.Closure>> |
globalEventHooks |
| Constructor and Description |
|---|
GrailsBuildEventListener(groovy.lang.GroovyClassLoader scriptClassLoader,
groovy.lang.Binding binding,
grails.util.BuildSettings buildSettings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGrailsBuildListener(java.lang.Class listenerClass) |
void |
addGrailsBuildListener(GrailsBuildListener listener) |
protected void |
addGrailsBuildListener(java.lang.String listenerClassName) |
void |
buildFinished(org.apache.tools.ant.BuildEvent buildEvent) |
void |
buildStarted(org.apache.tools.ant.BuildEvent buildEvent) |
void |
event(java.lang.String eventName)
Deprecated.
Use #triggerEvent instead
|
void |
event(java.lang.String eventName,
java.util.List arguments)
Deprecated.
Use #triggerEvent instead
|
protected java.io.File |
findEventsScript(java.io.File dir) |
groovy.lang.Binding |
getBinding() |
void |
initialize() |
protected void |
loadEventHooks(grails.util.BuildSettings buildSettings) |
void |
loadEventsScript(java.io.File eventScript) |
protected void |
loadGrailsBuildListeners() |
void |
messageLogged(org.apache.tools.ant.BuildEvent buildEvent) |
void |
setClassLoader(groovy.lang.GroovyClassLoader classLoader) |
void |
setGlobalEventHooks(java.util.Map<java.lang.String,java.util.List<groovy.lang.Closure>> globalEventHooks) |
void |
targetFinished(org.apache.tools.ant.BuildEvent buildEvent) |
void |
targetStarted(org.apache.tools.ant.BuildEvent buildEvent) |
void |
taskFinished(org.apache.tools.ant.BuildEvent buildEvent) |
void |
taskStarted(org.apache.tools.ant.BuildEvent buildEvent) |
void |
triggerEvent(java.lang.String eventName)
Triggers and event for the given name and binding
|
void |
triggerEvent(java.lang.String eventName,
java.lang.Object... arguments)
Triggers an event for the given name and arguments
|
protected java.util.Map<java.lang.String,java.util.List<groovy.lang.Closure>> globalEventHooks
public GrailsBuildEventListener(groovy.lang.GroovyClassLoader scriptClassLoader,
groovy.lang.Binding binding,
grails.util.BuildSettings buildSettings)
public groovy.lang.Binding getBinding()
public void initialize()
public void setClassLoader(groovy.lang.GroovyClassLoader classLoader)
public void setGlobalEventHooks(java.util.Map<java.lang.String,java.util.List<groovy.lang.Closure>> globalEventHooks)
protected void loadEventHooks(grails.util.BuildSettings buildSettings)
protected void loadGrailsBuildListeners()
public void loadEventsScript(java.io.File eventScript)
protected java.io.File findEventsScript(java.io.File dir)
public void buildStarted(org.apache.tools.ant.BuildEvent buildEvent)
buildStarted in interface org.apache.tools.ant.BuildListenerpublic void buildFinished(org.apache.tools.ant.BuildEvent buildEvent)
buildFinished in interface org.apache.tools.ant.BuildListenerpublic void targetStarted(org.apache.tools.ant.BuildEvent buildEvent)
targetStarted in interface org.apache.tools.ant.BuildListener@Deprecated
public void event(java.lang.String eventName,
java.util.List arguments)
eventName - The event namearguments - The arguments@Deprecated public void event(java.lang.String eventName)
eventName - The event namepublic void triggerEvent(java.lang.String eventName)
eventName - The name of the eventpublic void triggerEvent(java.lang.String eventName,
java.lang.Object... arguments)
eventName - The name of the eventarguments - The argumentspublic void targetFinished(org.apache.tools.ant.BuildEvent buildEvent)
targetFinished in interface org.apache.tools.ant.BuildListenerpublic void taskStarted(org.apache.tools.ant.BuildEvent buildEvent)
taskStarted in interface org.apache.tools.ant.BuildListenerpublic void taskFinished(org.apache.tools.ant.BuildEvent buildEvent)
taskFinished in interface org.apache.tools.ant.BuildListenerpublic void messageLogged(org.apache.tools.ant.BuildEvent buildEvent)
messageLogged in interface org.apache.tools.ant.BuildListenerprotected void addGrailsBuildListener(java.lang.String listenerClassName)
protected void addGrailsBuildListener(java.lang.Class listenerClass)
public void addGrailsBuildListener(GrailsBuildListener listener)