Class BootstrapOptions

java.lang.Object
enterprises.iwakura.amber.BootstrapOptions

public class BootstrapOptions extends Object
Options for Amber's bootstrap process. Holds various settings that control how dependencies are downloaded and validated.

There are some default options:

  • Temporary Directory: System's default temporary directory (System property java.io.tmpdir)
  • Validate Checksums: true
  • Fail on Invalid Checksum: true
  • Force Redownload: false
  • Fail on Missing Dependency: true
  • Exit Code After Download: null (no exit)
  • Library Directory Override: null (use manifest's directory)
You may use the builder to easily create an instance with custom settings.
  • Constructor Details

    • BootstrapOptions

      public BootstrapOptions()
  • Method Details

    • getPrefferedLibraryDirectory

      public Path getPrefferedLibraryDirectory(AmberManifest manifest)
      Get the preferred library directory, using the override if set, otherwise falling back to the manifest's directory.
      Parameters:
      manifest - The Amber manifest to get the directory from if no override is set.
      Returns:
      The preferred library directory.