diff options
author | 2017-12-06 10:30:32 -0800 | |
---|---|---|
committer | 2017-12-06 10:32:06 -0800 | |
commit | a2b162796c11940f5f299b7c7386cba1d613b86b (patch) | |
tree | 85ffa086bbb9ceda50947178552aff5fb645b008 /src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java | |
parent | 27e14fc433f263e52e079c24e5491f7bd4ab4dbb (diff) |
Pass file system to Path operations.
PiperOrigin-RevId: 178116776
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java b/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java index 07dd0c1362..da12e3cd17 100644 --- a/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java +++ b/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java @@ -16,6 +16,7 @@ package com.google.devtools.build.lib.actions; import com.google.common.eventbus.EventBus; import com.google.devtools.build.lib.events.EventHandler; +import com.google.devtools.build.lib.vfs.FileSystem; import com.google.devtools.build.lib.vfs.Path; /** @@ -24,10 +25,8 @@ import com.google.devtools.build.lib.vfs.Path; * Use should be rare, as the action graph is a functional model. */ public interface NotifyOnActionCacheHit extends Action { - /** - * A custom interface similar to {@link ActionExecutionContext}, but specific to cache hits. - */ - public interface ActionCachedContext { + /** A custom interface similar to {@link ActionExecutionContext}, but specific to cache hits. */ + interface ActionCachedContext { /** * An event listener to report messages to. Errors that signal a action failure should * use ActionExecutionException. @@ -37,6 +36,9 @@ public interface NotifyOnActionCacheHit extends Action { /** The EventBus for the current build. */ EventBus getEventBus(); + /** Returns the file system of the execution root */ + FileSystem getFileSystem(); + /** * Returns the execution root. This is the directory underneath which Blaze builds its entire * output working tree, including the source symlink forest. All build actions are executed |