public class ExternalJavac extends Object implements Javac
Javac.Invocation, Javac.Source
ARGFILES_ESCAPER
Constructor and Description |
---|
ExternalJavac(java.util.function.Supplier<Tool> javac,
String shortName) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<String> |
getCommandPrefix(SourcePathResolverAdapter resolver) |
String |
getDescription(com.google.common.collect.ImmutableList<String> options,
com.google.common.collect.ImmutableSortedSet<Path> javaSourceFilePaths,
Path pathToSrcsList) |
com.google.common.collect.ImmutableMap<String,String> |
getEnvironment(SourcePathResolverAdapter resolver) |
String |
getShortName() |
Javac.Invocation |
newBuildInvocation(JavacExecutionContext context,
SourcePathResolverAdapter sourcePathResolverAdapter,
BuildTarget invokingRule,
com.google.common.collect.ImmutableList<String> options,
com.google.common.collect.ImmutableList<JavacPluginJsr199Fields> annotationProcessors,
com.google.common.collect.ImmutableList<JavacPluginJsr199Fields> javacPlugins,
com.google.common.collect.ImmutableSortedSet<Path> javaSourceFilePaths,
Path pathToSrcsList,
Path workingDirectory,
boolean trackClassUsage,
boolean trackJavacPhaseEvents,
JarParameters abiJarParaameters,
JarParameters libraryJarParameters,
AbiGenerationMode abiGenerationMode,
AbiGenerationMode abiCompatibilityMode,
SourceOnlyAbiRuleInfoFactory ruleInfoFactory)
Prepares an invocation of the compiler with the given parameters.
|
public ExternalJavac(java.util.function.Supplier<Tool> javac, String shortName)
public com.google.common.collect.ImmutableList<String> getCommandPrefix(SourcePathResolverAdapter resolver)
getCommandPrefix
in interface Tool
public com.google.common.collect.ImmutableMap<String,String> getEnvironment(SourcePathResolverAdapter resolver)
getEnvironment
in interface Tool
public String getDescription(com.google.common.collect.ImmutableList<String> options, com.google.common.collect.ImmutableSortedSet<Path> javaSourceFilePaths, Path pathToSrcsList)
getDescription
in interface Javac
public String getShortName()
getShortName
in interface Javac
public Javac.Invocation newBuildInvocation(JavacExecutionContext context, SourcePathResolverAdapter sourcePathResolverAdapter, BuildTarget invokingRule, com.google.common.collect.ImmutableList<String> options, com.google.common.collect.ImmutableList<JavacPluginJsr199Fields> annotationProcessors, com.google.common.collect.ImmutableList<JavacPluginJsr199Fields> javacPlugins, com.google.common.collect.ImmutableSortedSet<Path> javaSourceFilePaths, Path pathToSrcsList, Path workingDirectory, boolean trackClassUsage, boolean trackJavacPhaseEvents, @Nullable JarParameters abiJarParaameters, @Nullable JarParameters libraryJarParameters, AbiGenerationMode abiGenerationMode, AbiGenerationMode abiCompatibilityMode, @Nullable SourceOnlyAbiRuleInfoFactory ruleInfoFactory)
Javac
newBuildInvocation
in interface Javac