Package sonia.scm.repository.api
Class BundleCommandBuilder
java.lang.Object
sonia.scm.repository.api.BundleCommandBuilder
The bundle command dumps a repository to a byte source such as a file. The
created bundle can be restored to an empty repository with the
UnbundleCommandBuilder
.- Since:
- 1.43
-
Method Summary
Modifier and TypeMethodDescriptionbundle
(com.google.common.io.ByteSink sink) Dumps the repository to the givenByteSink
.Dumps the repository to the givenFile
.bundle
(OutputStream outputStream) Dumps the repository to the givenOutputStream
.Checks for the file extension of the bundled repository
-
Method Details
-
bundle
Dumps the repository to the givenFile
.- Parameters:
outputFile
- output file- Returns:
- bundle response
-
bundle
Dumps the repository to the givenOutputStream
.- Parameters:
outputStream
- output stream- Returns:
- bundle response
-
bundle
Dumps the repository to the givenByteSink
.- Parameters:
sink
- byte sink- Returns:
- bundle response
-
getFileExtension
Checks for the file extension of the bundled repository
-