use of org.apache.commons.vfs2.provider.tar.TarFileProvider in project spoofax by metaborg.
the class DefaultFileSystemManagerProvider method addProviders.
protected void addProviders(DefaultFileSystemManager manager) throws FileSystemException {
manager.addProvider("tmp", new TemporaryFileProvider());
manager.addProvider("res", new ResourceFileProvider());
manager.addProvider("ram", new RamFileProvider());
manager.addProvider("zip", new ZipFileProvider());
manager.addProvider("jar", new JarFileProvider());
manager.addProvider("tar", new TarFileProvider());
manager.addProvider("tgz", new TgzFileProvider());
manager.addProvider("tbz2", new Tbz2FileProvider());
manager.addProvider("gz", new GzipFileProvider());
manager.addProvider("bz2", new Bzip2FileProvider());
manager.addProvider("http", new HttpFileProvider());
manager.addProvider("https", new HttpsFileProvider());
manager.addProvider("ftp", new FtpFileProvider());
manager.addProvider("ftps", new FtpsFileProvider());
}
use of org.apache.commons.vfs2.provider.tar.TarFileProvider in project commons-vfs by apache.
the class LargeTarTest method setUp.
@BeforeEach
public void setUp() throws Exception {
manager = new DefaultFileSystemManager();
manager.setFilesCache(new SoftRefFilesCache());
manager.setCacheStrategy(CacheStrategy.ON_RESOLVE);
manager.addProvider("file", new DefaultLocalFileProvider());
manager.addProvider("tgz", new TarFileProvider());
manager.addProvider("tar", new TarFileProvider());
// if test is run standalone
new File(baseDir).mkdir();
createLargeFile(largeFilePath, largeFileName);
}
Aggregations