diff options
author | 2015-07-30 17:06:23 +0000 | |
---|---|---|
committer | 2015-08-04 09:02:51 +0000 | |
commit | d6e6424722ff6a54fc2ba88ec2c5e52de970930b (patch) | |
tree | df482c58fd562df745c01dc2b00e6880911a93e8 /src/main/java/com/google | |
parent | 548207485b54cb240eb6859c5190afaede0b6650 (diff) |
Minor cosmetic changes.
--
MOS_MIGRATED_REVID=99486593
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java index b11f6c8748..fad5cd4979 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java @@ -500,15 +500,15 @@ public final class RuleContext extends TargetContext return getUniqueDirectoryArtifact(uniqueDirectory, new PathFragment(relative), root); } + /** + * Creates an artifact in a directory that is unique to the rule, thus guaranteeing that it never + * clashes with artifacts created by other rules. + */ public Artifact getUniqueDirectoryArtifact( String uniqueDirectory, PathFragment relative, Root root) { return getDerivedArtifact(getUniqueDirectory(uniqueDirectory).getRelative(relative), root); } - public PathFragment getArtifactPackagePrefix() { - return getLabel().getPackageIdentifier().getPathFragment(); - } - private Attribute getAttribute(String attributeName) { // TODO(bazel-team): We should check original rule for such attribute first, because aspect // can't contain empty attribute. Consider changing type of prerequisiteMap from |