public abstract class AbstractAgentMojo extends AbstractJacocoMojo
Modifier and Type | Field and Description |
---|---|
protected String |
address
IP address or hostname to bind to when the output method is tcpserver or
connect to when the output method is tcpclient.
|
protected static String |
AGENT_ARTIFACT_NAME
Name of the JaCoCo Agent artifact.
|
protected Boolean |
append
If set to true and the execution data file already exists, coverage data
is appended to the existing file.
|
protected File |
classDumpDir
If a directory is specified for this parameter the JaCoCo agent dumps all
class files it processes to the given location.
|
protected Boolean |
dumpOnExit
If set to true coverage data will be written on VM shutdown.
|
protected String |
exclClassLoaders
A list of class loader names, that should be excluded from execution
analysis.
|
protected Boolean |
jmx
If set to true the agent exposes functionality via JMX.
|
protected String |
output
Output method to use for writing coverage data.
|
protected Map<String,org.apache.maven.artifact.Artifact> |
pluginArtifactMap
Map of plugin artifacts.
|
protected Integer |
port
Port to bind to when the output method is tcpserver or connect to when
the output method is tcpclient.
|
protected String |
propertyName
Allows to specify property which will contains settings for JaCoCo Agent.
|
protected String |
sessionId
A session identifier that is written with the execution data.
|
protected static String |
SUREFIRE_ARG_LINE
Name of the property used in maven-surefire-plugin.
|
protected static String |
TYCHO_ARG_LINE
Name of the property used in maven-osgi-test-plugin.
|
Constructor and Description |
---|
AbstractAgentMojo() |
Modifier and Type | Method and Description |
---|---|
protected AgentOptions |
createAgentOptions() |
void |
executeMojo()
Executes Mojo.
|
protected File |
getAgentJarFile() |
protected abstract File |
getDestFile() |
protected String |
getEffectivePropertyName() |
protected boolean |
isEclipseTestPluginPackaging() |
protected boolean |
isPropertyNameSpecified() |
execute, getExcludes, getIncludes, getProject, skipMojo
protected static final String AGENT_ARTIFACT_NAME
protected static final String TYCHO_ARG_LINE
protected static final String SUREFIRE_ARG_LINE
protected Map<String,org.apache.maven.artifact.Artifact> pluginArtifactMap
protected String propertyName
protected Boolean append
protected String exclClassLoaders
protected String sessionId
protected Boolean dumpOnExit
protected String output
#destfile
.address
and port
. Execution data is
written to this TCP connection.address
and port
. Execution data is written to this
TCP connection.protected String address
protected Integer port
protected File classDumpDir
protected Boolean jmx
public void executeMojo()
AbstractJacocoMojo
executeMojo
in class AbstractJacocoMojo
protected File getAgentJarFile()
protected AgentOptions createAgentOptions()
protected String getEffectivePropertyName()
protected boolean isPropertyNameSpecified()
protected boolean isEclipseTestPluginPackaging()
protected abstract File getDestFile()
Copyright © 2013. All rights reserved.