|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractCompilerMojo()
|
Method Summary | |
---|---|
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()
|
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 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.
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(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.MojoExecutionException
CompilationFailureException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |