Class LibraryManager

java.lang.Object
net.glowstone.util.library.LibraryManager

public final class LibraryManager extends Object
Simple library manager which downloads external dependencies.
  • Constructor Details

    • LibraryManager

      public LibraryManager(String defaultRepository, String directoryName, boolean validateChecksum, int maxDownloadAttempts, Collection<Library> libraries)
      Creates the instance.
      Parameters:
      defaultRepository - the repository to download the libraries from
      directoryName - the name of the directory to download the libraries to
      validateChecksum - whether or not checksum validation is enabled
      maxDownloadAttempts - the maximum number of attempts to download a library
      libraries - the libraries to download
  • Method Details

    • run

      public void run()
      Downloads the libraries.