diff options
author | Laszlo Csomor <laszlocsomor@google.com> | 2015-02-12 17:08:06 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-02-12 17:08:06 +0000 |
commit | f04efcc42a4ca0e9a4f2936953c44e19947e342d (patch) | |
tree | 3be29eadbb142fce2344a5f396de7c9795eefc6c /src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java | |
parent | 6bf0d27fef0a135e5f158c1b0b5ac0ba3ebc9303 (diff) |
Introduce a PackageBoundaryMode enum to FilesetTraversalParams.
This enables the introduction of a third behavior mode when
RecursiveFilesystemTraversalFunction encounters a package boundary: on top of
the existing cross/no-cross behavior, it can now bail out with an error.
This is preparatory work to support Skyframe-native Filesets.
The CL also contains a couple of prettifying cleanups (in ActionCacheChecker
and in FilesetManifestAction).
--
MOS_MIGRATED_REVID=86185105
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java index a55920668f..67b3f40261 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunction.java @@ -1,4 +1,4 @@ -// Copyright 2014 Google Inc. All rights reserved. +// Copyright 2015 Google Inc. 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. @@ -222,7 +222,7 @@ public final class FilesetEntryFunction implements SkyFunction { DirectTraversal traversal) throws MissingDepException { SkyKey depKey = RecursiveFilesystemTraversalValue.key( new RecursiveFilesystemTraversalValue.TraversalRequest(traversal.getRoot().asRootedPath(), - traversal.isGenerated(), traversal.getCrossPackageBoundary(), traversal.isPackage(), + traversal.isGenerated(), traversal.getPackageBoundaryMode(), traversal.isPackage(), errorInfo)); RecursiveFilesystemTraversalValue v = (RecursiveFilesystemTraversalValue) env.getValue(depKey); if (env.valuesMissing()) { @@ -234,7 +234,7 @@ public final class FilesetEntryFunction implements SkyFunction { private static String createErrorInfo(FilesetTraversalParams t) { if (t.getDirectTraversal().isPresent()) { DirectTraversal direct = t.getDirectTraversal().get(); - return String.format("Fileset '%s' traversing %s %s", t.getOwnerLabel(), + return String.format("Fileset '%s' traversing %s '%s'", t.getOwnerLabel(), direct.isPackage() ? "package" : "file (or directory)", direct.getRoot().getRelativePart().getPathString()); } else { |