public class JavacPipelineState extends Object implements RulePipelineState
| Constructor and Description |
|---|
JavacPipelineState(Javac javac,
JavacOptions javacOptions,
BuildTarget invokingRule,
ClasspathChecker classpathChecker,
CompilerParameters compilerParameters,
JarParameters abiJarParameters,
JarParameters libraryJarParameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called after the pipeline is done (either through success or failure partway through) to
release resources.
|
Javac.Invocation |
getJavacInvocation(SourcePathResolverAdapter resolver,
ProjectFilesystem filesystem,
ExecutionContext context)
Get the invocation instance.
|
static com.google.common.collect.ImmutableList<String> |
getOptions(JavacOptions javacOptions,
ProjectFilesystem filesystem,
SourcePathResolverAdapter pathResolver,
Path outputDirectory,
Path generatedCodeDirectory,
ExecutionContext context,
com.google.common.collect.ImmutableSortedSet<Path> buildClasspathEntries) |
String |
getStderrContents() |
String |
getStdoutContents() |
boolean |
isRunning() |
public JavacPipelineState(Javac javac, JavacOptions javacOptions, BuildTarget invokingRule, ClasspathChecker classpathChecker, CompilerParameters compilerParameters, @Nullable JarParameters abiJarParameters, @Nullable JarParameters libraryJarParameters)
public boolean isRunning()
public Javac.Invocation getJavacInvocation(SourcePathResolverAdapter resolver, ProjectFilesystem filesystem, ExecutionContext context) throws IOException
IOExceptionpublic String getStdoutContents()
public String getStderrContents()
public void close()
RulePipelineStateclose in interface RulePipelineStateclose in interface AutoCloseablepublic static com.google.common.collect.ImmutableList<String> getOptions(JavacOptions javacOptions, ProjectFilesystem filesystem, SourcePathResolverAdapter pathResolver, Path outputDirectory, Path generatedCodeDirectory, ExecutionContext context, com.google.common.collect.ImmutableSortedSet<Path> buildClasspathEntries)