Package sonia.scm.update
Interface PropertyFileAccess.StoreFileTools
- Enclosing interface:
- PropertyFileAccess
public static interface PropertyFileAccess.StoreFileTools
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forStoreFiles
(PropertyFileAccess.FileConsumer storeFileConsumer) Iterates over all found store files (that is, files ending with ".xml") and calls the given consumer for each file, giving the file and the name of the data file.void
moveAsRepositoryStore
(Path storeFile, String repositoryId) Moves a data file to the new location for a repository with the given id.
-
Method Details
-
forStoreFiles
Iterates over all found store files (that is, files ending with ".xml") and calls the given consumer for each file, giving the file and the name of the data file.- Parameters:
storeFileConsumer
- This consumer will be called for each file found.- Throws:
IOException
- May be thrown when an exception occurs.
-
moveAsRepositoryStore
Moves a data file to the new location for a repository with the given id. If there is no directory for the given repository id, nothing will be done.- Parameters:
storeFile
- The name of the store file.repositoryId
- The id of the repository as the new target for the store file.- Throws:
IOException
- When the file could not be moved.
-