diff options
author | 2015-11-17 01:54:45 +0000 | |
---|---|---|
committer | 2015-11-17 10:53:19 +0000 | |
commit | eaaa9d0d76a880fc1df1ce818c92b526b2b282c2 (patch) | |
tree | 0b5baa17a4a47f0f3f0fc7b56ebb73a423dd95df /src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java | |
parent | 6b283e212281ac194011c1245dbe0c559b32779a (diff) |
Emit extra-actions for actions registered by Aspects.
A prerequisite is to pass RuleContext to ConfiguredAspect, so we can read from it the registered actions when we build() the aspect.
--
MOS_MIGRATED_REVID=107997593
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java index 529bc4a29e..743c5442a4 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/AbstractJ2ObjcProtoAspect.java @@ -78,7 +78,7 @@ public abstract class AbstractJ2ObjcProtoAspect implements ConfiguredNativeAspec public ConfiguredAspect create( ConfiguredTarget base, RuleContext ruleContext, AspectParameters parameters) { if (!checkShouldCreateAspect(ruleContext)) { - return new ConfiguredAspect.Builder(NAME).build(); + return new ConfiguredAspect.Builder(NAME, ruleContext).build(); } ProtoSourcesProvider protoSourcesProvider = base.getProvider(ProtoSourcesProvider.class); @@ -110,7 +110,7 @@ public abstract class AbstractJ2ObjcProtoAspect implements ConfiguredNativeAspec NestedSet<Artifact> j2ObjcTransitiveClassMappingFiles = j2ObjcTransitiveClassMappingFiles( ruleContext, classMappingFiles); - return new ConfiguredAspect.Builder(NAME) + return new ConfiguredAspect.Builder(NAME, ruleContext) .addProvider(J2ObjcSrcsProvider.class, j2objcSrcsProvider) .addProvider( J2ObjcMappingFileProvider.class, |