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/skyframe/SkyframeActionExecutor.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/skyframe/SkyframeActionExecutor.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java index c89631526f..ebae390f50 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java @@ -586,12 +586,12 @@ public final class SkyframeActionExecutor { * <p>This method is just a wrapper around {@link Action#discoverInputs} that properly processes * any ActionExecutionException thrown before rethrowing it to the caller. */ - void discoverInputs(Action action, ActionExecutionContext actionExecutionContext) + Collection<Artifact> discoverInputs(Action action, ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException { try { - action.discoverInputs(actionExecutionContext); + return action.discoverInputs(actionExecutionContext); } catch (ActionExecutionException e) { - processAndThrow(e, action, actionExecutionContext.getFileOutErr()); + throw processAndThrow(e, action, actionExecutionContext.getFileOutErr()); } } |