jour:instrument

The jour:instrument will apply instrumentation during build.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: test
  • Automatically executes within the lifecycle phase: process-classes

Required Parameters

Name Type Description
classesDirectory File The directory or jar containing original classes.
output String Output directory name relative to outputDirectory parameter.
outputDirectory File Directory containing the generated JAR.

Optional Parameters

Name Type Description
copyClasses boolean Copy not instrumented classes to "output"
copyResources boolean Copy resources to "output"
jourConfig String Reads configuration options from the given file. File or resource name. Default value is ${basedir}/jour.xml.
useSystemClassPath boolean Appends the system search path to the end of the search path. The system search path usually includes the platform library, extension libraries, and the search path specified by the -classpath option or the CLASSPATH environment variable.

Parameter Details

classesDirectory The directory or jar containing original classes.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.outputDirectory}

copyClasses Copy not instrumented classes to "output"
  • Type: boolean
  • Required: No
  • Expression: false

copyResources Copy resources to "output"
  • Type: boolean
  • Required: No
  • Expression: false

jourConfig Reads configuration options from the given file. File or resource name.
  • Type: java.lang.String
  • Required: No
  • Default: ${basedir}/jour.xml

output Output directory name relative to outputDirectory parameter.
  • Type: java.lang.String
  • Required: Yes
  • Expression: iclasses

outputDirectory Directory containing the generated JAR.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}

useSystemClassPath Appends the system search path to the end of the search path. The system search path usually includes the platform library, extension libraries, and the search path specified by the -classpath option or the CLASSPATH environment variable.
  • Type: boolean
  • Required: No
  • Expression: true