use of com.google.devtools.build.lib.vfs.JavaIoFileSystem in project bazel by bazelbuild.
the class CompressedTarFunctionTest method setUpFs.
@Before
public void setUpFs() throws Exception {
testFS = OS.getCurrent() == OS.WINDOWS ? new JavaIoFileSystem() : new UnixFileSystem();
tarballPath = testFS.getPath(BlazeTestUtils.runfilesDir()).getRelative(TestConstants.JAVATESTS_ROOT + PATH_TO_TEST_ARCHIVE + ARCHIVE_NAME);
workingDir = testFS.getPath(new File(TestUtils.tmpDir()).getCanonicalPath());
outDir = workingDir.getRelative("out");
descriptorBuilder = DecompressorDescriptor.builder().setDecompressor(TarGzFunction.INSTANCE).setRepositoryPath(outDir).setArchivePath(tarballPath);
}
Aggregations