diff options
author | 2016-12-21 16:50:02 +0000 | |
---|---|---|
committer | 2016-12-21 17:26:56 +0000 | |
commit | dba3c8337efdf1c032f71bd49e04ed9baa9f2b9f (patch) | |
tree | dfce48edc103eb88cf4b05b6acf0ee548780286a /src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java | |
parent | 6d31cb01b80d0560c0c083d40e641816877b3d06 (diff) |
Move some classes to lib.exec in preparation for layering enforcement
This change is part of the mu-bazel effort, which aims to build a minimally
useful Bazel binary with most extraneous functionality removed. As part of
that, we want to enforce layering of packages. In particular, lib.actions must
not depend on lib.rules or lib.exec. lib.rules must not depend on lib.exec.
Moving these classes is a necessary step to enforce that layering.
--
PiperOrigin-RevId: 142668172
MOS_MIGRATED_REVID=142668172
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java b/src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java deleted file mode 100644 index 642bc09ada..0000000000 --- a/src/main/java/com/google/devtools/build/lib/actions/SimpleActionContextProvider.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2015 The Bazel Authors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -package com.google.devtools.build.lib.actions; - -import com.google.common.collect.ImmutableList; -import com.google.devtools.build.lib.actions.Executor.ActionContext; -import java.util.List; - -/** - * An {@link ActionContextProvider} that just provides the {@link ActionContext}s it's given. - */ -final class SimpleActionContextProvider extends ActionContextProvider { - private final List<ActionContext> actionContexts; - - public SimpleActionContextProvider(ActionContext... contexts) { - actionContexts = ImmutableList.<ActionContext>copyOf(contexts); - } - - @Override - public Iterable<ActionContext> getActionContexts() { - return actionContexts; - } -} |