mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-09 02:45:37 +02:00
Add file tools for v1 xml stores
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package sonia.scm.update;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public interface PropertyFileAccess {
|
||||
Target renameGlobalConfigurationFrom(String oldName);
|
||||
|
||||
interface Target {
|
||||
void to(String newName) throws IOException;
|
||||
}
|
||||
|
||||
StoreFileTools forStoreName(String name);
|
||||
|
||||
interface StoreFileTools {
|
||||
void forStoreFiles(FileConsumer storeFileConsumer) throws IOException;
|
||||
|
||||
void moveAsRepositoryStore(Path storeFile, String repositoryId) throws IOException;
|
||||
}
|
||||
|
||||
public interface FileConsumer {
|
||||
void accept(Path file, String repositoryId) throws IOException;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user