Anchor | ||||
---|---|---|---|---|
|
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 |
---|---|---|
File | The directory where compiled fixture classes go. | |
File | The source directory containing the fixture sources to be compiled. |
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" | |
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 | |
boolean | Output warnings | |
boolean | Set this to 'true' to bypass greenpepper fixture compilation process entirely. | |
String | The -source argument for the Java compiler | |
int | The granularity in milliseconds of the last modification | |
String | The -target argument for the Java compiler | |
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
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
The compiler id of the compiler to use.
Type | java.lang.String |
---|---|
Required | No |
Default | javac |
Anchor | ||||
---|---|---|---|---|
|
Version of the compiler to use, ex. "1.3", "1.5"
Type | java.lang.String |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
The -encoding argument for the Java compiler
Type | java.lang.String |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
The executable of the compiler to use.
Type | java.lang.String |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
The directory where compiled fixture classes go.
Type | java.io.File |
---|---|
Required | Yes |
Expression | ${project.build.directory}/fixture-test-classes |
Anchor | ||||
---|---|---|---|---|
|
The source directory containing the fixture sources to be compiled.
Type | java.io.File |
---|---|
Required | Yes |
Anchor | ||||
---|---|---|---|---|
|
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 compiled code using the compiler's optimization methods
Type | boolean |
---|---|
Required | No |
Default | false |
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
Output source locations where deprecated APIs are used
Type | boolean |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
Output warnings
Type | boolean |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
The -source argument for the Java compiler
Type | java.lang.String |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
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 | ||||
---|---|---|---|---|
|
The -target argument for the Java compiler
Type | java.lang.String |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
A list of exclusion filters for the compiler.
Type | java.util.Set |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
A list of inclusion filters for the compiler.
Type | java.util.Set |
---|---|
Required | No |
Anchor | ||||
---|---|---|---|---|
|
Whether to output messages about what the compiler is doing
Type | boolean |
---|---|
Required | No |
Default | false |