public class JavacToJarStepFactory extends CompileToJarStepFactory implements AddsToRuleKey
Constructor and Description |
---|
JavacToJarStepFactory(Javac javac,
JavacOptions javacOptions,
ExtraClasspathProvider extraClasspathProvider) |
Modifier and Type | Method and Description |
---|---|
void |
createCompileStep(BuildContext context,
ProjectFilesystem projectFilesystem,
BuildTarget invokingRule,
CompilerParameters parameters,
com.google.common.collect.ImmutableList.Builder<Step> steps,
BuildableContext buildableContext) |
void |
createCompileToJarStepImpl(ProjectFilesystem projectFilesystem,
BuildContext context,
BuildTarget invokingRule,
CompilerParameters compilerParameters,
com.google.common.collect.ImmutableList<String> postprocessClassesCommands,
JarParameters abiJarParameters,
JarParameters libraryJarParameters,
com.google.common.collect.ImmutableList.Builder<Step> steps,
BuildableContext buildableContext) |
void |
createPipelinedCompileStep(BuildContext context,
ProjectFilesystem projectFilesystem,
JavacPipelineState pipeline,
BuildTarget invokingRule,
com.google.common.collect.ImmutableList.Builder<Step> steps) |
void |
createPipelinedCompileToJarStep(BuildContext context,
ProjectFilesystem projectFilesystem,
BuildTarget target,
JavacPipelineState pipeline,
ResourcesParameters resourcesParameters,
com.google.common.collect.ImmutableList<String> postprocessClassesCommands,
com.google.common.collect.ImmutableList.Builder<Step> steps,
BuildableContext buildableContext) |
JavacPipelineState |
createPipelineState(BuildTarget invokingRule,
CompilerParameters compilerParameters,
JarParameters abiJarParameters,
JarParameters libraryJarParameters) |
protected Optional<String> |
getBootClasspath(BuildContext context)
This can be used make the bootclasspath if available, to the postprocess classes commands.
|
JavacOptions |
getJavacOptions() |
boolean |
hasAnnotationProcessing() |
addCompilerSetupSteps, addJarCreationSteps, addJarSetupSteps, createCompileToJarStep, createJarStep, recordDepFileIfNecessary
public JavacToJarStepFactory(Javac javac, JavacOptions javacOptions, ExtraClasspathProvider extraClasspathProvider)
public JavacPipelineState createPipelineState(BuildTarget invokingRule, CompilerParameters compilerParameters, @Nullable JarParameters abiJarParameters, @Nullable JarParameters libraryJarParameters)
public void createCompileStep(BuildContext context, ProjectFilesystem projectFilesystem, BuildTarget invokingRule, CompilerParameters parameters, com.google.common.collect.ImmutableList.Builder<Step> steps, BuildableContext buildableContext)
createCompileStep
in class CompileToJarStepFactory
public final void createPipelinedCompileToJarStep(BuildContext context, ProjectFilesystem projectFilesystem, BuildTarget target, JavacPipelineState pipeline, ResourcesParameters resourcesParameters, com.google.common.collect.ImmutableList<String> postprocessClassesCommands, com.google.common.collect.ImmutableList.Builder<Step> steps, BuildableContext buildableContext)
protected Optional<String> getBootClasspath(BuildContext context)
CompileToJarStepFactory
getBootClasspath
in class CompileToJarStepFactory
public void createCompileToJarStepImpl(ProjectFilesystem projectFilesystem, BuildContext context, BuildTarget invokingRule, CompilerParameters compilerParameters, com.google.common.collect.ImmutableList<String> postprocessClassesCommands, @Nullable JarParameters abiJarParameters, @Nullable JarParameters libraryJarParameters, com.google.common.collect.ImmutableList.Builder<Step> steps, BuildableContext buildableContext)
createCompileToJarStepImpl
in class CompileToJarStepFactory
public void createPipelinedCompileStep(BuildContext context, ProjectFilesystem projectFilesystem, JavacPipelineState pipeline, BuildTarget invokingRule, com.google.common.collect.ImmutableList.Builder<Step> steps)
public JavacOptions getJavacOptions()
public boolean hasAnnotationProcessing()
hasAnnotationProcessing
in class CompileToJarStepFactory