diff options
author | 2017-06-19 14:17:52 +0200 | |
---|---|---|
committer | 2017-06-19 18:25:13 +0200 | |
commit | 77c9f5ec751f4adf3a8095e2e2943ec59dc12d26 (patch) | |
tree | e26c02e39bbec73d4fdc47edbbfa7469fa0f291d /src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java | |
parent | 34e22458c6058773b41958b75ef5e7459482c109 (diff) |
Rewrite the Executor/ActionExecutionContext split
Move everything to ActionExecutionContext, and drop Executor whereever possible.
This clarifies the API, makes it simpler to test, and simplifies the code.
PiperOrigin-RevId: 159414816
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java index 027e119e8d..17ed755306 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/ExecutableSymlinkAction.java @@ -20,7 +20,6 @@ import com.google.devtools.build.lib.actions.ActionExecutionException; import com.google.devtools.build.lib.actions.ActionOwner; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.vfs.Path; - import java.io.IOException; /** @@ -36,8 +35,7 @@ public final class ExecutableSymlinkAction extends SymlinkAction { @Override public void execute(ActionExecutionContext actionExecutionContext) throws ActionExecutionException { - Path inputPath = actionExecutionContext.getExecutor().getExecRoot().getRelative( - getInputPath()); + Path inputPath = actionExecutionContext.getExecRoot().getRelative(getInputPath()); try { // Validate that input path is a file with the executable bit is set. if (!inputPath.isFile()) { |