Package net.glowstone.util.library
Class LibraryManager
java.lang.Object
net.glowstone.util.library.LibraryManager
Simple library manager which downloads external dependencies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enum containing the supported hash algorithms. -
Constructor Summary
ConstructorsConstructorDescriptionLibraryManager(String defaultRepository, String directoryName, boolean validateChecksum, int maxDownloadAttempts, Collection<Library> libraries) Creates the instance. -
Method Summary
-
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 fromdirectoryName- the name of the directory to download the libraries tovalidateChecksum- whether or not checksum validation is enabledmaxDownloadAttempts- the maximum number of attempts to download a librarylibraries- the libraries to download
-
-
Method Details
-
run
public void run()Downloads the libraries.
-