Class BundleCommandBuilder

java.lang.Object
sonia.scm.repository.api.BundleCommandBuilder

public final class BundleCommandBuilder extends Object
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 Details

    • bundle

      public BundleResponse bundle(File outputFile)
      Dumps the repository to the given File.
      Parameters:
      outputFile - output file
      Returns:
      bundle response
    • bundle

      public BundleResponse bundle(OutputStream outputStream)
      Dumps the repository to the given OutputStream.
      Parameters:
      outputStream - output stream
      Returns:
      bundle response
    • bundle

      public BundleResponse bundle(com.google.common.io.ByteSink sink)
      Dumps the repository to the given ByteSink.
      Parameters:
      sink - byte sink
      Returns:
      bundle response
    • getFileExtension

      public String getFileExtension()
      Checks for the file extension of the bundled repository