net.orfjackal.retrolambda.maven
Class ProcessTestClassesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.orfjackal.retrolambda.maven.ProcessTestClassesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="process-test",
defaultPhase=PROCESS_TEST_CLASSES,
requiresDependencyResolution=TEST)
public class ProcessTestClassesMojo- extends org.apache.maven.plugin.AbstractMojo
Processes test classes compiled with Java 8 so that they will be compatible with
Java 5, 6 or 7 runtime.
|
Field Summary |
File |
java8home
Directory of the Java 8 installation for running Retrolambda. |
String |
target
The Java version targeted by the bytecode processing. |
File |
testInputDir
Directory containing the original classes compiled with Java 8. |
File |
testOutputDir
Directory where to write the backported main classes. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testInputDir
@Parameter(defaultValue="${project.build.testOutputDirectory}",
property="retrolambdaTestInputDir",
required=true)
public File testInputDir
- Directory containing the original classes compiled with Java 8.
- Since:
- 1.3.0
testOutputDir
@Parameter(defaultValue="${project.build.testOutputDirectory}",
property="retrolambdaTestOutputDir",
required=true)
public File testOutputDir
- Directory where to write the backported main classes.
If same as the input directory, will overwrite the original classes.
- Since:
- 1.3.0
java8home
@Parameter(defaultValue="${java.home}",
property="java8home",
required=true)
public File java8home
- Directory of the Java 8 installation for running Retrolambda.
- Since:
- 1.2.0
target
@Parameter(defaultValue="1.7",
property="retrolambdaTarget",
required=true)
public String target
- The Java version targeted by the bytecode processing. Possible values are
1.5, 1.6, 1.7 and 1.8. After processing the classes will be compatible
with the target JVM provided the known limitations are considered. See
project documentation
for more details.
- Since:
- 1.2.0
ProcessTestClassesMojo
public ProcessTestClassesMojo()
getInputDir
protected File getInputDir()
getOutputDir
protected File getOutputDir()
getClasspathId
protected String getClasspathId()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2013-2014. All Rights Reserved.