|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.plugin.AbstractCompilerMojo
public abstract class AbstractCompilerMojo
TODO: At least one step could be optimized, currently the plugin will do two scans of all the source code if the compiler has to have the entire set of sources. This is currently the case for at least the C# compiler and most likely all the other .NET compilers too.
Field Summary | |
---|---|
protected String |
compilerArgument
Sets the unformatted argument string to be passed to the compiler if fork is set to true. |
protected Map |
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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractCompilerMojo()
|
Method Summary | |
---|---|
void |
execute()
|
protected abstract List |
getClasspathElements()
|
protected abstract String |
getCompilerArgument()
|
protected abstract Map |
getCompilerArguments()
|
protected abstract List |
getCompileSourceRoots()
|
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()
|
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 |
---|
protected String source
protected String target
protected Map 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.
Constructor Detail |
---|
public AbstractCompilerMojo()
Method Detail |
---|
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 List getClasspathElements()
protected abstract List getCompileSourceRoots()
protected abstract File getOutputDirectory()
protected abstract String getSource()
protected abstract String getTarget()
protected abstract String getCompilerArgument()
protected abstract Map getCompilerArguments()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, CompilationFailureException
org.apache.maven.plugin.MojoExecutionException
CompilationFailureException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |