diff options
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 | 13 |
1 files changed, 6 insertions, 7 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 e87d79edcf..524c20aa94 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 @@ -17,6 +17,7 @@ package com.google.devtools.build.lib.actions; import com.google.devtools.build.lib.actions.extra.ExtraActionInfo; import com.google.devtools.build.lib.concurrent.ThreadSafety.ConditionallyThreadCompatible; import com.google.devtools.build.lib.profiler.Describable; +import com.google.devtools.build.lib.vfs.FileSystem; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.build.skyframe.SkyFunction; import java.io.IOException; @@ -77,16 +78,14 @@ import javax.annotation.Nullable; public interface Action extends ActionExecutionMetadata, Describable { /** - * Prepares for executing this action; called by the Builder prior to - * executing the Action itself. This method should prepare the file system, so - * that the execution of the Action can write the output files. At a minimum - * any pre-existing and write protected output files should be removed or the - * permissions should be changed, so that they can be safely overwritten by - * the action. + * Prepares for executing this action; called by the Builder prior to executing the Action itself. + * This method should prepare the file system, so that the execution of the Action can write the + * output files. At a minimum any pre-existing and write protected output files should be removed + * or the permissions should be changed, so that they can be safely overwritten by the action. * * @throws IOException if there is an error deleting the outputs. */ - void prepare(Path execRoot) throws IOException; + void prepare(FileSystem fileSystem, Path execRoot) throws IOException; /** * Executes this action; called by the Builder when all of this Action's inputs have been |