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