class InvokerSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<BuildJob> |
buildJobs |
private java.util.List<BuildJob> |
errorJobs |
private java.util.List<BuildJob> |
failedJobs |
private java.util.List<BuildJob> |
skippedJobs |
private java.util.List<BuildJob> |
successfulJobs |
Constructor and Description |
---|
InvokerSession()
Creates a new empty session.
|
InvokerSession(BuildJob[] buildJobs)
Creates a session that initially contains the specified build jobs.
|
Modifier and Type | Method and Description |
---|---|
void |
addJob(BuildJob buildJob)
Adds the specified build job to this session.
|
java.util.List<BuildJob> |
getErrorJobs()
Gets the build jobs which had errors for this session.
|
java.util.List<BuildJob> |
getFailedJobs()
Gets the failed build jobs in this session.
|
java.util.List<BuildJob> |
getJobs()
Gets the build jobs in this session.
|
java.util.List<BuildJob> |
getSkippedJobs()
Gets the skipped build jobs in this session.
|
java.util.List<BuildJob> |
getSuccessfulJobs()
Gets the successful build jobs in this session.
|
void |
handleFailures(org.apache.maven.plugin.logging.Log logger,
boolean ignoreFailures)
Handles the build failures in this session.
|
void |
logSummary(org.apache.maven.plugin.logging.Log logger,
boolean ignoreFailures)
Prints a summary of this session to the specified logger.
|
private void |
resetStats() |
void |
setJobs(java.util.List<? extends BuildJob> buildJobs)
Sets the build jobs of this session.
|
private void |
updateStats() |
private java.util.List<BuildJob> buildJobs
private java.util.List<BuildJob> failedJobs
private java.util.List<BuildJob> errorJobs
private java.util.List<BuildJob> successfulJobs
private java.util.List<BuildJob> skippedJobs
InvokerSession()
InvokerSession(BuildJob[] buildJobs)
buildJobs
- The build jobs to set, must not be null
.public void addJob(BuildJob buildJob)
buildJob
- The build job to add, must not be null
.public void setJobs(java.util.List<? extends BuildJob> buildJobs)
buildJobs
- The build jobs to set, must not be null
.public java.util.List<BuildJob> getJobs()
null
.public java.util.List<BuildJob> getSuccessfulJobs()
null
.public java.util.List<BuildJob> getFailedJobs()
null
.public java.util.List<BuildJob> getErrorJobs()
null
.public java.util.List<BuildJob> getSkippedJobs()
null
.private void resetStats()
private void updateStats()
public void logSummary(org.apache.maven.plugin.logging.Log logger, boolean ignoreFailures)
logger
- The mojo logger to output messages to, must not be null
.ignoreFailures
- A flag whether failures should be ignored or whether a build failure should be signaled.public void handleFailures(org.apache.maven.plugin.logging.Log logger, boolean ignoreFailures) throws org.apache.maven.plugin.MojoFailureException
logger
- The mojo logger to output messages to, must not be null
.ignoreFailures
- A flag whether failures should be ignored or whether a build failure should be signaled.org.apache.maven.plugin.MojoFailureException
- If failures are present and not ignored.