diff options
author | 2015-03-11 17:28:19 +0000 | |
---|---|---|
committer | 2015-03-11 18:41:36 +0000 | |
commit | 83c7454a4da661f2a81118b7e71b601561d62bc8 (patch) | |
tree | 3e17e809648c4eaf5e4e4421b550ac8b2b333f10 /src/main/java/com/google/devtools/build/lib/actions/Action.java | |
parent | 4dc828a4f57d3b0e5f9e0189fbbc12e168383c29 (diff) |
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
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, 4 insertions, 2 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 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<Artifact> discoverInputs(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException; /** |