GreenPepper Maven Plugin - compile
greenpepper:compile
Compiles 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
Required Parameters
Name |
Type |
Description |
---|---|---|
File |
The directory where compiled fixture classes go. Default value is ${project.build.directory}/fixture-test-classes |
|
File |
The source directory containing the fixture sources to be compiled. Default value is ${basedir}/src/fixture/java |
Optional Parameters
Name |
Type |
Description |
---|---|---|
Map |
Arguments to be passed to the compiler if fork is set to true. |
|
String |
The compiler id of the compiler to use. Default value is javac |
|
String |
Version of the compiler to use, ex. "1.3", "1.5" Default value is 1.6 |
|
boolean |
Whether to include debugging information in the compiled class files. |
|
String |
The -encoding argument for the Java compiler |
|
String |
The executable of the compiler to use. |
|
boolean |
Runs the compiler in a separate process. |
|
boolean |
Optimize compiled code using the compiler's optimization methods Default value is false |
|
String |
Used to control the name of the output file when compiling a set of |
|
boolean |
Output source locations where deprecated APIs are used Default value is false |
|
boolean |
Output warnings Default value is false |
|
boolean |
Set this to 'true' to bypass greenpepper fixture compilation process entirely. |
|
String |
The -source argument for the Java compiler Default value is 1.6 |
|
int |
The granularity in milliseconds of the last modification |
|
String |
The -target argument for the Java compiler Default value is 1.6 |
|
Set |
A list of exclusion filters for the compiler. |
|
Set |
A list of inclusion filters for the compiler. |
|
boolean |
Whether to output messages about what the compiler is doing Default value is false |
Parameter Details
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 |
compilerId
The compiler id of the compiler to use.
Type |
java.lang.String |
---|---|
Required |
No |
Default |
javac |
compilerVersion
Version of the compiler to use, ex. "1.3", "1.5"
Type |
java.lang.String |
---|---|
Required |
No |
Default |
1.6 |
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 |
encoding
The -encoding argument for the Java compiler
Type |
java.lang.String |
---|---|
Required |
No |
executable
The executable of the compiler to use.
Type |
java.lang.String |
---|---|
Required |
No |
fixtureOutputDirectory
The directory where compiled fixture classes go.
Type |
java.io.File |
---|---|
Required |
Yes |
Default |
${project.build.directory}/fixture-test-classes |
fixtureSourceDirectory
The source directory containing the fixture sources to be compiled.
Type |
java.io.File |
---|---|
Required |
Yes |
Default |
${basedir}/src/fixture/java |
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 |
optimize
Optimize compiled code using the compiler's optimization methods
Type |
boolean |
---|---|
Required |
No |
Default |
false |
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} |
showDeprecation
Output source locations where deprecated APIs are used
Type |
boolean |
---|---|
Required |
No |
Default |
false |
showWarnings
Output warnings
Type |
boolean |
---|---|
Required |
No |
Default |
false |
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 |
source
The -source argument for the Java compiler
Type |
java.lang.String |
---|---|
Required |
No |
Default |
1.6 |
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 |
target
The -target argument for the Java compiler
Type |
java.lang.String |
---|---|
Required |
No |
Default |
1.6 |
testExcludes
A list of exclusion filters for the compiler.
Type |
java.util.Set |
---|---|
Required |
No |
testIncludes
A list of inclusion filters for the compiler.
Type |
java.util.Set |
---|---|
Required |
No |
verbose
Whether to output messages about what the compiler is doing
Type |
boolean |
---|---|
Required |
No |
Default |
false |