Package copied.org.apache.maven.plugin
Class AbstractCompilerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
copied.org.apache.maven.plugin.AbstractCompilerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractOsgiCompilerMojo
public abstract class AbstractCompilerMojo
extends org.apache.maven.plugin.AbstractMojo
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.
- Version:
- $Id: AbstractCompilerMojo.java 210 2007-02-20 03:02:41Z jvanzyl $
- Author:
- others, Trygve Laugstøl, Jan Sievers (SAP) added support for annotation processor options
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected StringThe -release argument for the Java compilerprotected StringThe -source argument for the Java compilerprotected StringThe -target argument for the Java compilerFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected org.codehaus.plexus.compiler.CompilerConfigurationgetCompilerConfiguration(List<String> compileSourceRoots, List<String> compileSourceExcludes) protected abstract Fileprotected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(int staleMillis) protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(String inputFileEnding) removeEmptyCompileSourceRoots(List<String> compileSourceRootsList) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_SOURCE_VERSION
- See Also:
-
DEFAULT_TARGET_VERSION
- See Also:
-
source
The -source argument for the Java compiler -
target
The -target argument for the Java compiler -
release
The -release argument for the Java compiler
-
-
Constructor Details
-
AbstractCompilerMojo
public AbstractCompilerMojo()
-
-
Method Details
-
getSourceInclusionScanner
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis) -
getSourceInclusionScanner
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding) -
getClasspathElements
protected abstract List<String> getClasspathElements() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCompileSourceRoots
protected abstract List<String> getCompileSourceRoots() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCompileSourceExcludePaths
protected abstract List<String> getCompileSourceExcludePaths() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutputDirectory
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getCompilerConfiguration
protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots, List<String> compileSourceExcludes) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
removeEmptyCompileSourceRoots
-