public class JarGenruleDescription extends AbstractGenruleDescription<JarGenruleDescriptionArg> implements ImplicitDepsInferringDescription<JarGenruleDescriptionArg>
GenruleDescription
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.
AbstractGenruleDescription.CommonArg
buckConfig, enableSandbox, sandboxExecutionStrategy, toolchainProvider
Constructor and Description |
---|
JarGenruleDescription(ToolchainProvider toolchainProvider,
BuckConfig config,
SandboxExecutionStrategy sandboxExecutionStrategy) |
Modifier and Type | Method and Description |
---|---|
protected BuildRule |
createBuildRule(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams params,
ActionGraphBuilder graphBuilder,
JarGenruleDescriptionArg args,
Optional<Arg> cmd,
Optional<Arg> bash,
Optional<Arg> cmdExe) |
void |
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget,
CellNameResolver cellRoots,
JarGenruleDescriptionArg constructorArg,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) |
Class<JarGenruleDescriptionArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
canExecuteRemotely, createBuildRule, createBuildRule, getAndroidToolsOptional, getGenruleType, getMacroHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
producesCacheableSubgraph
getConfigurationDeps
public JarGenruleDescription(ToolchainProvider toolchainProvider, BuckConfig config, SandboxExecutionStrategy sandboxExecutionStrategy)
public Class<JarGenruleDescriptionArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<JarGenruleDescriptionArg>
protected BuildRule createBuildRule(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams params, ActionGraphBuilder graphBuilder, JarGenruleDescriptionArg args, Optional<Arg> cmd, Optional<Arg> bash, Optional<Arg> cmdExe)
createBuildRule
in class AbstractGenruleDescription<JarGenruleDescriptionArg>
public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, JarGenruleDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
findDepsForTargetFromConstructorArgs
in interface ImplicitDepsInferringDescription<JarGenruleDescriptionArg>
findDepsForTargetFromConstructorArgs
in class AbstractGenruleDescription<JarGenruleDescriptionArg>