@Named(value="jdt") public class CompilerJdt extends AbstractCompiler implements org.eclipse.jdt.internal.compiler.ICompilerRequestor
Modifier and Type | Field and Description |
---|---|
static String |
ID |
context, log
Constructor and Description |
---|
CompilerJdt(CompilerBuildContext context,
ClasspathEntryCache classpathCache,
ClasspathDigester classpathDigester,
ProjectClasspathDigester processorpathDigester) |
Modifier and Type | Method and Description |
---|---|
void |
acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult result) |
void |
addGeneratedSource(io.takari.incrementalbuild.Output<File> generatedSource) |
int |
compile() |
void |
onAnnotationProcessing() |
boolean |
setClasspath(List<File> dependencies,
File mainClasses,
Set<File> directDependencies) |
boolean |
setProcessorpath(List<File> processorpath) |
boolean |
setSourcepath(List<File> dependencies,
Set<File> sourceRoots) |
boolean |
setSources(List<io.takari.incrementalbuild.ResourceMetadata<File>> sources) |
void |
skipCompile() |
getAnnotationProcessorOptions, getAnnotationProcessors, getDebug, getGeneratedSourcesDirectory, getOutputDirectory, getPom, getPrivatePackageReference, getProc, getSource, getSourceEncoding, getTarget, getTransitiveDependencyReference, isParameters, isShowWarnings, isVerbose, setAnnotationProcessorOptions, setAnnotationProcessors, setDebug, setGeneratedSourcesDirectory, setOutputDirectory, setParameters, setPom, setPrivatePackageReference, setProc, setShowWarnings, setSource, setSourceEncoding, setTarget, setTransitiveDependencyReference, setVerbose
public static final String ID
@Inject public CompilerJdt(CompilerBuildContext context, ClasspathEntryCache classpathCache, ClasspathDigester classpathDigester, ProjectClasspathDigester processorpathDigester)
public int compile() throws IOException
compile
in class AbstractCompiler
IOException
public boolean setSources(List<io.takari.incrementalbuild.ResourceMetadata<File>> sources) throws IOException
setSources
in class AbstractCompiler
IOException
public boolean setClasspath(List<File> dependencies, File mainClasses, Set<File> directDependencies) throws IOException
setClasspath
in class AbstractCompiler
IOException
public boolean setSourcepath(List<File> dependencies, Set<File> sourceRoots) throws IOException
setSourcepath
in class AbstractCompiler
IOException
public boolean setProcessorpath(List<File> processorpath) throws IOException
setProcessorpath
in class AbstractCompiler
IOException
public void acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult result)
acceptResult
in interface org.eclipse.jdt.internal.compiler.ICompilerRequestor
public void addGeneratedSource(io.takari.incrementalbuild.Output<File> generatedSource)
public void onAnnotationProcessing()
public void skipCompile()
skipCompile
in class AbstractCompiler
Copyright © 2020. All rights reserved.