use of org.apache.archiva.common.filelock.FileLockManager in project archiva by apache.
the class RepositoryGroupHandlerTest method getManaged.
protected ManagedRepository getManaged(String id, String name) throws IOException {
Path path = getRepoBaseDir().resolve("../managed");
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(path.toAbsolutePath(), lockManager);
return new BasicManagedRepository(id, name, storage);
}
use of org.apache.archiva.common.filelock.FileLockManager in project archiva by apache.
the class ManagedRepositoryHandlerTest method createRepository.
protected EditableManagedRepository createRepository(String id, String name, Path location) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(location.toAbsolutePath(), lockManager);
BasicManagedRepository repo = new BasicManagedRepository(id, name, storage);
repo.setLocation(location.toAbsolutePath().toUri());
return repo;
}
use of org.apache.archiva.common.filelock.FileLockManager in project archiva by apache.
the class RepositoryScannerTest method createRepository.
protected EditableManagedRepository createRepository(String id, String name, Path location) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(location.toAbsolutePath(), lockManager);
BasicManagedRepository repo = new BasicManagedRepository(id, name, storage);
repo.setLocation(location.toAbsolutePath().toUri());
repo.setContent(new ManagedRepositoryContentMock(repo));
return repo;
}
use of org.apache.archiva.common.filelock.FileLockManager in project archiva by apache.
the class RemoteRepositoryHandlerTest method createRepository.
protected EditableRemoteRepository createRepository(String id, String name, Path location) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(location.toAbsolutePath(), lockManager);
BasicRemoteRepository repo = new BasicRemoteRepository(id, name, storage);
repo.setLocation(location.toAbsolutePath().toUri());
return repo;
}
use of org.apache.archiva.common.filelock.FileLockManager in project archiva by apache.
the class MavenManagedRepository method newLocalInstance.
public static MavenManagedRepository newLocalInstance(String id, String name, Path basePath) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(basePath.resolve(id), lockManager);
return new MavenManagedRepository(id, name, storage);
}
Aggregations