diff options
author | 2016-04-06 21:36:02 +0000 | |
---|---|---|
committer | 2016-04-07 11:48:32 +0000 | |
commit | 0fd2273e1ee6433dddefd7a1754fdcd9915fd897 (patch) | |
tree | 303b4ec1dc4b22a66cc655653cddb0cdcfddfde4 /src/main/java/com/google/devtools/build/lib/actions/Action.java | |
parent | 2b0f54a16a5911352deec615c9686f17eb74e113 (diff) |
Allow actions to specify if extra actions can attach to them.
--
MOS_MIGRATED_REVID=119203499
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/Action.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/actions/Action.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/Action.java b/src/main/java/com/google/devtools/build/lib/actions/Action.java index 9f8953b166..e93b37aab1 100644 --- a/src/main/java/com/google/devtools/build/lib/actions/Action.java +++ b/src/main/java/com/google/devtools/build/lib/actions/Action.java @@ -158,6 +158,12 @@ public interface Action extends ActionMetadata, Describable { boolean showsOutputUnconditionally(); /** + * Returns true if an {@link com.google.devtools.build.lib.rules.extra.ExtraAction} action can be + * attached to this action. If not, extra actions should not be attached to this action. + */ + boolean extraActionCanAttach(); + + /** * Called by {@link com.google.devtools.build.lib.rules.extra.ExtraAction} at execution time to * extract information from this action into a protocol buffer to be used by extra_action rules. * |