org.jacoco.maven
Class AgentMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jacoco.maven.AbstractJacocoMojo
          extended by org.jacoco.maven.AbstractAgentMojo
              extended by org.jacoco.maven.AgentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class AgentMojo
extends AbstractAgentMojo

Prepares a property pointing to the JaCoCo runtime agent that can be passed as a VM argument to the application under test. Depending on the project packaging type by default a property with the following name is set:

Note that these properties must not be overwritten by the test configuration, otherwise the JaCoCo agent cannot be attached. If you need custom parameters please append them. For example:

   <argLine>${argLine} -your -extra -arguments</argLine>
 

Resulting coverage information is collected during execution and by default written to a file when the process terminates.

Since:
0.5.3
Is defined by the goal name:
prepare-agent
Is bound to the specified phase of the standard build lifecycle:
initialize
Requires the dependencies in this specified scope:
runtime
Requires a Maven project to run:
true
Mojo is thread safe:
true

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AgentMojo()
           
 
Method Summary
 
Methods inherited from class org.jacoco.maven.AbstractAgentMojo
executeMojo, skipMojo
 
Methods inherited from class org.jacoco.maven.AbstractJacocoMojo
execute, getExcludes, getIncludes, getProject
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentMojo

public AgentMojo()


Copyright © 2009-2014 Mountainminds GmbH & Co. KG. All Rights Reserved.