emma:instrument

Full name:

org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:instrument

Description:

Offline class instrumentor.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.

Optional Parameters

Name Type Since Description
filters String[] - Instrumentation filters.
instrumentationPaths File[] - Specifies the instrumentation paths to use.
merge boolean - Indicates whether the metadata should be merged into the destination metadataFile, if any.
Default value is: true.
metadataFile File - Location to store class coverage metadata.
Default value is: ${project.build.directory}/coverage.em.
outputDirectory File - Location to store EMMA generated resources.
Default value is: ${project.build.directory}/generated-classes/emma.
verbose boolean - Sets EMMA verbosity level to verbose.
Default value is: false.

Parameter Details

filters:

Instrumentation filters.
  • Type: java.lang.String[]
  • Required: No

instrumentationPaths:

Specifies the instrumentation paths to use.
  • Type: java.io.File[]
  • Required: No

merge:

Indicates whether the metadata should be merged into the destination metadataFile, if any.
  • Type: boolean
  • Required: No
  • Expression: ${emma.merge}
  • Default: true

metadataFile:

Location to store class coverage metadata.
  • Type: java.io.File
  • Required: No
  • Expression: ${emma.metadataFile}
  • Default: ${project.build.directory}/coverage.em

outputDirectory:

Location to store EMMA generated resources.
  • Type: java.io.File
  • Required: No
  • Expression: ${emma.outputDirectory}
  • Default: ${project.build.directory}/generated-classes/emma

verbose:

Sets EMMA verbosity level to verbose.
  • Type: boolean
  • Required: No
  • Expression: ${emma.verbose}
  • Default: false