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, isCacheablecompareTo, getBuildable, getBuildCellPathFactory, getBuildDeps, getBuildSteps, getOutputPathResolver, getSetupStepsForBuildable, getSourcePath, getSourcePaths, injectFieldsIfNecessary, inputBasedRuleKeyIsEnabled, recordOutputs, recordOutputs, recordOutputs, stepsForBuildable, stepsForBuildable, updateBuildRuleResolverequals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, hasBuildSteps, hashCode, injectFields, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolvergetDependencies, getSourcePathOutputsgetTypeisSupportedprotected 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)
BinaryBuildRulegetExecutableCommand in interface BinaryBuildRuleoutputLabel - associated with the executable