Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
compile
compile
greenpepper:compile

Compile the fixtures.

Mojo Attributes

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: <code>compile</code>
  • Automatically executes within the lifecycle phase: <code>pre-integration-test</code>

Required Parameters

Name

Type

Description

fixtureOutputDirectory

File

The directory where compiled fixture classes go.

fixtureSourceDirectory

File

The source directory containing the fixture sources to be compiled.

Optional Parameters

Name

Type

Description

compilerArguments

Map

Arguments to be passed to the compiler if fork is set to true.
<p/>
This is because the list of valid arguments passed to a Java compiler
varies based on the compiler version.

compilerId

String

The compiler id of the compiler to use. Default value is javac

compilerVersion

String

Version of the compiler to use, ex. "1.3", "1.5"

debug

boolean

Whether to include debugging information in the compiled class files.
The default value is true. Default value is true

encoding

String

The -encoding argument for the Java compiler

executable

String

The executable of the compiler to use.

fork

boolean

Runs the compiler in a separate process.
<p/>
If not set the compiler will default to a executable. Default value is false

optimize

boolean

Optimize compiled code using the compiler's optimization methods Default value is false

outputFileName

String

Used to control the name of the output file when compiling a set of
sources to a single file.

showDeprecation

boolean

Output source locations where deprecated APIs are used

showWarnings

boolean

Output warnings

skip

boolean

Set this to 'true' to bypass greenpepper fixture compilation process entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion. Default value is false

source

String

The -source argument for the Java compiler

staleMillis

int

The granularity in milliseconds of the last modification
date for testing whether a source needs recompilation Default value is 0

target

String

The -target argument for the Java compiler

testExcludes

Set

A list of exclusion filters for the compiler.

testIncludes

Set

A list of inclusion filters for the compiler.

verbose

boolean

Whether to output messages about what the compiler is doing Default value is false

Parameter Details

Anchor
compilerArguments
compilerArguments
compilerArguments

Arguments to be passed to the compiler if fork is set to true.
<p/>
This is because the list of valid arguments passed to a Java compiler
varies based on the compiler version.

Type

java.util.Map

Required

No

Anchor
compilerId
compilerId
compilerId

The compiler id of the compiler to use.

Type

java.lang.String

Required

No

Default

javac

Anchor
compilerVersion
compilerVersion
compilerVersion

Version of the compiler to use, ex. "1.3", "1.5"

Type

java.lang.String

Required

No

Anchor
debug
debug
debug

Whether to include debugging information in the compiled class files.
The default value is true.

Type

boolean

Required

No

Expression

${maven.compiler.debug}

Default

true

Anchor
encoding
encoding
encoding

The -encoding argument for the Java compiler

Type

java.lang.String

Required

No

Anchor
executable
executable
executable

The executable of the compiler to use.

Type

java.lang.String

Required

No

Anchor
fixtureOutputDirectory
fixtureOutputDirectory
fixtureOutputDirectory

The directory where compiled fixture classes go.

Type

java.io.File

Required

Yes

Expression

${project.build.directory}/fixture-test-classes

Anchor
fixtureSourceDirectory
fixtureSourceDirectory
fixtureSourceDirectory

The source directory containing the fixture sources to be compiled.

Type

java.io.File

Required

Yes

Anchor
fork
fork
fork

Runs the compiler in a separate process.
<p/>
If not set the compiler will default to a executable.

Type

boolean

Required

No

Default

false

Anchor
optimize
optimize
optimize

Optimize compiled code using the compiler's optimization methods

Type

boolean

Required

No

Default

false

Anchor
outputFileName
outputFileName
outputFileName

Used to control the name of the output file when compiling a set of
sources to a single file.

Type

java.lang.String

Required

No

Expression

${project.build.finalName}

Anchor
showDeprecation
showDeprecation
showDeprecation

Output source locations where deprecated APIs are used

Type

boolean

Required

No

Anchor
showWarnings
showWarnings
showWarnings

Output warnings

Type

boolean

Required

No

Anchor
skip
skip
skip

Set this to 'true' to bypass greenpepper fixture compilation process entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion.

Type

boolean

Required

No

Expression

${maven.greenpepper.test.skip}

Default

false

Anchor
source
source
source

The -source argument for the Java compiler

Type

java.lang.String

Required

No

Anchor
staleMillis
staleMillis
staleMillis

The granularity in milliseconds of the last modification
date for testing whether a source needs recompilation

Type

int

Required

No

Expression

${lastModGranularityMs}

Default

0

Anchor
target
target
target

The -target argument for the Java compiler

Type

java.lang.String

Required

No

Anchor
testExcludes
testExcludes
testExcludes

A list of exclusion filters for the compiler.

Type

java.util.Set

Required

No

Anchor
testIncludes
testIncludes
testIncludes

A list of inclusion filters for the compiler.

Type

java.util.Set

Required

No

Anchor
verbose
verbose
verbose

Whether to output messages about what the compiler is doing

Type

boolean

Required

No

Default

false