Class RecordArtifactVerifier
- java.lang.Object
-
- com.facebook.buck.core.rules.common.RecordArtifactVerifier
-
- All Implemented Interfaces:
BuildableContext
public class RecordArtifactVerifier extends Object implements BuildableContext
RecordArtifactVerifier can be used to ease the migration to ModernBuildRule. It will record a fixed set of artifacts and then act as a BuildableContext and verify that any further recorded artifacts are in the initial set (or children of an item in the set). This can be used at the top-level getBuildSteps() call to replace the BuildableContext.
-
-
Constructor Summary
Constructors Constructor Description RecordArtifactVerifier(Collection<Path> allowedPaths, BuildableContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Path>
getPaths()
void
recordArtifact(Path pathToArtifact)
-
-
-
Constructor Detail
-
RecordArtifactVerifier
public RecordArtifactVerifier(Collection<Path> allowedPaths, BuildableContext context)
-
-
Method Detail
-
recordArtifact
public void recordArtifact(Path pathToArtifact)
- Specified by:
recordArtifact
in interfaceBuildableContext
- See Also:
BuildInfoRecorder.recordArtifact(Path)
-
-