Versions Compared

Key

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

Anchor
compile
compile
greenpepper:compile

Compile the fixturesCompiles fixture test sources.

Mojo Attributes

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

...

Name

Type

Description

fixtureOutputDirectory

File

The directory where compiled fixture classes go. Default value is ${project.build.directory}/fixture-test-classes

fixtureSourceDirectory

File

The source directory containing the fixture sources to be compiled. Default value is ${basedir}/src/fixture/java

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" Default value is 1.6

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 Default value is false

showWarnings

boolean

Output warnings Default value is false

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 Default value is 1.6

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 Default value is 1.6

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

...

Type

java.lang.String

Required

No

Default

1.6

Anchor
debug
debug
debug

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

...

Type

java.io.File

Required

Yes

ExpressionDefault

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

...

Type

java.io.File

Required

Yes

Default

${basedir}/src/fixture/java

Anchor
fork
fork
fork

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

...

Output source locations where deprecated APIs are used

Type

boolean

Required

No

Default

false

Anchor
showWarnings
showWarnings
showWarnings

Output warnings

Type

boolean

Required

No

Default

false

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

java.lang.String

Required

No

Default

1.6

Anchor
staleMillis
staleMillis
staleMillis

...

Type

java.lang.String

Required

No

Default

1.6

Anchor
testExcludes
testExcludes
testExcludes

...