From 83c7454a4da661f2a81118b7e71b601561d62bc8 Mon Sep 17 00:00:00 2001 From: Janak Ramakrishnan Date: Wed, 11 Mar 2015 17:28:19 +0000 Subject: Return the set of files found when discovering inputs. Skyframe will probably want to store these and may declare dependencies in advance so all metadata is present in the graph. Long-term, we may be able to use the returned set to make input-discovering actions immutable, which would be nice. -- MOS_MIGRATED_REVID=88348068 --- src/main/java/com/google/devtools/build/lib/actions/Action.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/actions/Action.java') 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 efaa0dc3c8..09c50fb1fc 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 @@ -99,9 +99,11 @@ public interface Action extends ActionMetadata, Describable { /** * Method used to find inputs before execution for an action that - * {@link ActionMetadata#discoversInputs}. + * {@link ActionMetadata#discoversInputs}. Returns null if action's inputs will be discovered + * during execution proper. */ - void discoverInputs(ActionExecutionContext actionExecutionContext) + @Nullable + Collection discoverInputs(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException; /** -- cgit v1.2.3