public final class JarGenrule extends BaseGenrule<GenruleBuildable> implements BinaryBuildRule
Genrule
except specialized to produce a jar.
The produced jar behaves similarly to a jar produced by java_binary, which means it can be
executed by buck run
or using the $(exe )
macro.
Modifier | Constructor and Description |
---|---|
protected |
JarGenrule(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
SandboxExecutionStrategy sandboxExecutionStrategy,
BuildRuleResolver resolver,
SourceSet srcs,
Optional<Arg> cmd,
Optional<Arg> bash,
Optional<Arg> cmdExe,
Optional<String> type,
String out,
boolean isCacheable,
Optional<String> environmentExpansionSeparator,
Tool javaRuntimeLauncher) |
Modifier and Type | Method and Description |
---|---|
Tool |
getExecutableCommand(OutputLabel outputLabel)
Command to execute the output of this rule.
|
getOutputLabels, getOutputName, getSourcePathToOutput, getSourcePathToOutput, getType, isCacheable
compareTo, getBuildable, getBuildCellPathFactory, getBuildDeps, getBuildSteps, getOutputPathResolver, getSetupStepsForBuildable, getSourcePath, getSourcePaths, injectFieldsIfNecessary, inputBasedRuleKeyIsEnabled, recordOutputs, recordOutputs, recordOutputs, stepsForBuildable, stepsForBuildable, updateBuildRuleResolver
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, hasBuildSteps, hashCode, injectFields, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
isSupported
protected JarGenrule(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, SandboxExecutionStrategy sandboxExecutionStrategy, BuildRuleResolver resolver, SourceSet srcs, Optional<Arg> cmd, Optional<Arg> bash, Optional<Arg> cmdExe, Optional<String> type, String out, boolean isCacheable, Optional<String> environmentExpansionSeparator, Tool javaRuntimeLauncher)
public Tool getExecutableCommand(OutputLabel outputLabel)
BinaryBuildRule
getExecutableCommand
in interface BinaryBuildRule
outputLabel
- associated with the executable