@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, setVerbosepublic static final String ID
@Inject public CompilerJdt(CompilerBuildContext context, ClasspathEntryCache classpathCache, ClasspathDigester classpathDigester, ProjectClasspathDigester processorpathDigester)
public int compile()
throws IOException
compile in class AbstractCompilerIOExceptionpublic boolean setSources(List<io.takari.incrementalbuild.ResourceMetadata<File>> sources) throws IOException
setSources in class AbstractCompilerIOExceptionpublic boolean setClasspath(List<File> dependencies, File mainClasses, Set<File> directDependencies) throws IOException
setClasspath in class AbstractCompilerIOExceptionpublic boolean setSourcepath(List<File> dependencies, Set<File> sourceRoots) throws IOException
setSourcepath in class AbstractCompilerIOExceptionpublic boolean setProcessorpath(List<File> processorpath) throws IOException
setProcessorpath in class AbstractCompilerIOExceptionpublic void acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult result)
acceptResult in interface org.eclipse.jdt.internal.compiler.ICompilerRequestorpublic void addGeneratedSource(io.takari.incrementalbuild.Output<File> generatedSource)
public void onAnnotationProcessing()
public void skipCompile()
skipCompile in class AbstractCompilerCopyright © 2018. All rights reserved.