@Mojo(name="compile", defaultPhase=COMPILE, threadSafe=true, requiresDependencyResolution=COMPILE) public class CompilerMojo extends AbstractCompilerMojo
compilerArgs, compilerArgument, compilerArguments, PS, release, source, target
Constructor and Description |
---|
CompilerMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected List<String> |
getClasspathElements() |
protected String |
getCompilerArgument() |
protected Map<String,String> |
getCompilerArguments() |
protected List<String> |
getCompileSourceRoots() |
protected File |
getGeneratedSourcesDirectory() |
protected List<String> |
getModulepathElements() |
protected File |
getOutputDirectory() |
protected Map<String,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> |
getPathElements() |
protected String |
getRelease() |
protected String |
getSource() |
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(int staleMillis) |
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(String inputFileEnding) |
protected String |
getTarget() |
protected void |
preparePaths(Set<File> sourceFiles) |
convertToCompilerResult, getBuildStartTime, getProject, getRequestThreadCount, getToolchain, isDependencyChanged, isTestCompile, setRelease, setTarget
getLog, getPluginContext, setLog, setPluginContext
protected List<String> getCompileSourceRoots()
getCompileSourceRoots
in class AbstractCompilerMojo
protected List<String> getClasspathElements()
getClasspathElements
in class AbstractCompilerMojo
protected List<String> getModulepathElements()
getModulepathElements
in class AbstractCompilerMojo
protected Map<String,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> getPathElements()
getPathElements
in class AbstractCompilerMojo
protected File getOutputDirectory()
getOutputDirectory
in class AbstractCompilerMojo
public void execute() throws MojoExecutionException, CompilationFailureException
execute
in interface Mojo
execute
in class AbstractCompilerMojo
MojoExecutionException
CompilationFailureException
protected void preparePaths(Set<File> sourceFiles)
preparePaths
in class AbstractCompilerMojo
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
getSourceInclusionScanner
in class AbstractCompilerMojo
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
getSourceInclusionScanner
in class AbstractCompilerMojo
protected String getSource()
getSource
in class AbstractCompilerMojo
protected String getTarget()
getTarget
in class AbstractCompilerMojo
protected String getRelease()
getRelease
in class AbstractCompilerMojo
protected String getCompilerArgument()
getCompilerArgument
in class AbstractCompilerMojo
protected Map<String,String> getCompilerArguments()
getCompilerArguments
in class AbstractCompilerMojo
protected File getGeneratedSourcesDirectory()
getGeneratedSourcesDirectory
in class AbstractCompilerMojo
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.