public abstract class AbstractCompilerMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
compilerArgument
Sets the unformatted argument string to be passed to the compiler if fork is set to true.
|
protected java.util.Map<java.lang.String,java.lang.String> |
compilerArguments
Sets the arguments to be passed to the compiler (prepending a dash) if fork is set to true.
|
protected java.lang.String |
source
The -source argument for the Java compiler.
|
protected java.lang.String |
target
The -target argument for the Java compiler.
|
| Constructor and Description |
|---|
AbstractCompilerMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract java.util.List<java.lang.String> |
getClasspathElements() |
protected abstract java.lang.String |
getCompilerArgument() |
protected abstract java.util.Map<java.lang.String,java.lang.String> |
getCompilerArguments() |
protected abstract java.util.List<java.lang.String> |
getCompileSourceRoots() |
protected abstract java.io.File |
getGeneratedSourcesDirectory() |
protected abstract java.io.File |
getOutputDirectory() |
protected abstract java.lang.String |
getSource() |
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(int staleMillis) |
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(java.lang.String inputFileEnding) |
protected abstract java.lang.String |
getTarget() |
protected java.lang.String source
protected java.lang.String target
protected java.util.Map<java.lang.String,java.lang.String> compilerArguments
Sets the arguments to be passed to the compiler (prepending a dash) if fork is set to true.
This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
protected java.lang.String compilerArgument
Sets the unformatted argument string to be passed to the compiler if fork is set to true.
This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(java.lang.String inputFileEnding)
protected abstract java.util.List<java.lang.String> getClasspathElements()
protected abstract java.util.List<java.lang.String> getCompileSourceRoots()
protected abstract java.io.File getOutputDirectory()
protected abstract java.lang.String getSource()
protected abstract java.lang.String getTarget()
protected abstract java.lang.String getCompilerArgument()
protected abstract java.util.Map<java.lang.String,java.lang.String> getCompilerArguments()
protected abstract java.io.File getGeneratedSourcesDirectory()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
CompilationFailureException
org.apache.maven.plugin.MojoExecutionExceptionCompilationFailureExceptionCopyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.