use of org.apache.archiva.repository.storage.fs.FilesystemAsset in project archiva by apache.
the class ArtifactBuilderTest method getFile.
StorageAsset getFile(String path) throws IOException {
Path filePath = Paths.get(path);
FilesystemStorage filesystemStorage = new FilesystemStorage(filePath.getParent(), new DefaultFileLockManager());
return new FilesystemAsset(filesystemStorage, filePath.getFileName().toString(), filePath);
}
Aggregations