public final class BuildEvent
extends java.util.EventObject
BuildListeners.| Constructor and Description |
|---|
BuildEvent(BuildSystem buildSystem,
Context context)
Constructor.
|
BuildEvent(BuildSystem buildSystem,
Context context,
boolean success)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BuildSystem |
getBuildSystem()
Get the
BuildSystem where the event happened. |
Context |
getContext()
Get the context currently used to build.
|
boolean |
isBuildSuccessful()
Flag indicating if the build was successful.
|
public BuildEvent(BuildSystem buildSystem, Context context)
buildSystem - the build system where the event happened. Must not be
null.context - the context to build. Must not be null.public BuildEvent(BuildSystem buildSystem, Context context, boolean success)
buildSystem - the build system where the event happened. Must not be
null.context - the context to build. Must not be null.success - true if the build is succeding. false
if it failed or was aborted.public BuildSystem getBuildSystem()
BuildSystem where the event happened.
This is functionally equivalent to casting the result of getSource() to
a BuildSystem object.BuildSystem that generated the event. Must not be null.public Context getContext()
public boolean isBuildSuccessful()
true if build is successful. false if
the build failed or was aborted.