|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
net.orfjackal.retrolambda.maven.ProcessMainClassesMojo
@Mojo(name="process-main",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE)
public class ProcessMainClassesMojoProcesses main classes compiled with Java 8 so that they will be compatible with Java 5, 6 or 7 runtime.
| Field Summary | |
|---|---|
boolean |
defaultMethods
Whether to backport default methods and static methods on interfaces. |
boolean |
fork
Forces Retrolambda to run in a separate process. |
File |
java8home
Directory of the Java 8 installation for running Retrolambda. |
File |
mainInputDir
Directory containing the original classes compiled with Java 8. |
File |
mainOutputDir
Directory where to write the backported classes. |
protected org.apache.maven.project.MavenProject |
project
|
boolean |
quiet
Reduces the amount of logging. |
String |
target
The Java version targeted by the bytecode processing. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ProcessMainClassesMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
protected List<String> |
getClasspathElements()
|
protected File |
getInputDir()
|
protected File |
getOutputDir()
|
| 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 |
| Field Detail |
|---|
@Parameter(defaultValue="${project.build.outputDirectory}",
property="retrolambdaMainInputDir",
required=true)
public File mainInputDir
@Parameter(defaultValue="${project.build.outputDirectory}",
property="retrolambdaMainOutputDir",
required=true)
public File mainOutputDir
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="java8home",
required=false)
public File java8home
@Parameter(defaultValue="1.7",
property="retrolambdaTarget",
required=true)
public String target
@Parameter(defaultValue="false",
property="retrolambdaDefaultMethods",
required=true)
public boolean defaultMethods
@Parameter(defaultValue="false",
property="retrolambdaQuiet",
required=true)
public boolean quiet
@Parameter(defaultValue="false") public boolean fork
| Constructor Detail |
|---|
public ProcessMainClassesMojo()
| Method Detail |
|---|
protected File getInputDir()
protected File getOutputDir()
protected List<String> getClasspathElements()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.artifact.DependencyResolutionRequiredException
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||