Class ChainedExecutionListener
- java.lang.Object
-
- org.fedoraproject.xmvn.connector.maven.ChainedExecutionListener
-
- All Implemented Interfaces:
org.apache.maven.execution.ExecutionListener
class ChainedExecutionListener extends java.lang.Object implements org.apache.maven.execution.ExecutionListener
Forwards Maven execution events to a chain of listeners.Maven allows only one execution listener. This class can be used to workaround for this limitation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.apache.maven.execution.ExecutionListener>
listeners
-
Constructor Summary
Constructors Constructor Description ChainedExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExecutionListener(org.apache.maven.execution.ExecutionListener listener)
void
forkedProjectFailed(org.apache.maven.execution.ExecutionEvent event)
void
forkedProjectStarted(org.apache.maven.execution.ExecutionEvent event)
void
forkedProjectSucceeded(org.apache.maven.execution.ExecutionEvent event)
void
forkFailed(org.apache.maven.execution.ExecutionEvent event)
void
forkStarted(org.apache.maven.execution.ExecutionEvent event)
void
forkSucceeded(org.apache.maven.execution.ExecutionEvent event)
void
mojoFailed(org.apache.maven.execution.ExecutionEvent event)
void
mojoSkipped(org.apache.maven.execution.ExecutionEvent event)
void
mojoStarted(org.apache.maven.execution.ExecutionEvent event)
void
mojoSucceeded(org.apache.maven.execution.ExecutionEvent event)
void
projectDiscoveryStarted(org.apache.maven.execution.ExecutionEvent event)
void
projectFailed(org.apache.maven.execution.ExecutionEvent event)
void
projectSkipped(org.apache.maven.execution.ExecutionEvent event)
void
projectStarted(org.apache.maven.execution.ExecutionEvent event)
void
projectSucceeded(org.apache.maven.execution.ExecutionEvent event)
void
sessionEnded(org.apache.maven.execution.ExecutionEvent event)
void
sessionStarted(org.apache.maven.execution.ExecutionEvent event)
-
-
-
Method Detail
-
addExecutionListener
public void addExecutionListener(org.apache.maven.execution.ExecutionListener listener)
-
projectDiscoveryStarted
public void projectDiscoveryStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
projectDiscoveryStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
sessionStarted
public void sessionStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
sessionStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
sessionEnded
public void sessionEnded(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
sessionEnded
in interfaceorg.apache.maven.execution.ExecutionListener
-
projectSkipped
public void projectSkipped(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
projectSkipped
in interfaceorg.apache.maven.execution.ExecutionListener
-
projectStarted
public void projectStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
projectStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
projectSucceeded
public void projectSucceeded(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
projectSucceeded
in interfaceorg.apache.maven.execution.ExecutionListener
-
projectFailed
public void projectFailed(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
projectFailed
in interfaceorg.apache.maven.execution.ExecutionListener
-
mojoSkipped
public void mojoSkipped(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
mojoSkipped
in interfaceorg.apache.maven.execution.ExecutionListener
-
mojoStarted
public void mojoStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
mojoStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
mojoSucceeded
public void mojoSucceeded(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
mojoSucceeded
in interfaceorg.apache.maven.execution.ExecutionListener
-
mojoFailed
public void mojoFailed(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
mojoFailed
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkStarted
public void forkStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkSucceeded
public void forkSucceeded(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkSucceeded
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkFailed
public void forkFailed(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkFailed
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkedProjectStarted
public void forkedProjectStarted(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkedProjectStarted
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkedProjectSucceeded
public void forkedProjectSucceeded(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkedProjectSucceeded
in interfaceorg.apache.maven.execution.ExecutionListener
-
forkedProjectFailed
public void forkedProjectFailed(org.apache.maven.execution.ExecutionEvent event)
- Specified by:
forkedProjectFailed
in interfaceorg.apache.maven.execution.ExecutionListener
-
-