aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java
diff options
context:
space:
mode:
authorGravatar Eric Fellheimer <felly@google.com>2015-11-12 02:28:44 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2015-11-12 09:03:01 +0000
commit7ef96d778a0baf8c4e3a06bf50a4651e3e8bf1fe (patch)
tree6160e79f854d50c5e76ab845cef10b62f21b8be8 /src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java
parentcbb69f247adc1901ef6b7b52a6f12192f6131f72 (diff)
Allow package blacklisting to be done via a file checked into the depot. By default this is disabled.
-- MOS_MIGRATED_REVID=107644420
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java
index 3286908da0..4ee743037f 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/RecursiveDirectoryTraversalFunction.java
@@ -113,11 +113,13 @@ abstract class RecursiveDirectoryTraversalFunction
*/
TReturn visitDirectory(RecursivePkgKey recursivePkgKey, Environment env) {
RootedPath rootedPath = recursivePkgKey.getRootedPath();
- ImmutableSet<PathFragment> blacklist = PrecomputedValue.BLACKLISTED_PKG_PREFIXES.get(env);
+ BlacklistedPackagePrefixesValue blacklist =
+ (BlacklistedPackagePrefixesValue) env.getValue(BlacklistedPackagePrefixesValue.key());
if (blacklist == null) {
return null;
}
- Set<PathFragment> excludedPaths = Sets.union(recursivePkgKey.getExcludedPaths(), blacklist);
+ Set<PathFragment> excludedPaths =
+ Sets.union(recursivePkgKey.getExcludedPaths(), blacklist.getPatterns());
Path root = rootedPath.getRoot();
PathFragment rootRelativePath = rootedPath.getRelativePath();