public class WriteFile extends AbstractBuildRule
| Constructor and Description |
|---|
WriteFile(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
byte[] fileContents,
Path output,
boolean executable) |
WriteFile(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
String fileContents,
Path output,
boolean executable) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<BuildRule> |
getBuildDeps() |
com.google.common.collect.ImmutableList<Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
byte[] |
getFileContents() |
SourcePath |
getSourcePathToOutput() |
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolverclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getFullyQualifiedName, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecutionpublic WriteFile(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, String fileContents, Path output, boolean executable)
public WriteFile(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, byte[] fileContents, Path output, boolean executable)
public com.google.common.collect.ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
public SourcePath getSourcePathToOutput()
public byte[] getFileContents()
public SortedSet<BuildRule> getBuildDeps()
deps argument for this build rule in the build file in which it was defined.
However, there are special cases where other arguments pull in implicit dependencies
(e.g., the keystore argument in android_binary). In these cases, the
implicit dependencies are also included in the set returned by this method. The value of
the original deps argument, as defined in the build file, must be accessed via a
custom getter provided by the build rule.