Class DependencyHelper
java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.dependency.DependencyHelper
credit to Alviann (...)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloads a dependency filevoiddownloads the dependenciesvoidloads the dependency filevoidloads all dependencies on a specific directory
-
Constructor Details
-
DependencyHelper
-
DependencyHelper
public DependencyHelper()
-
-
Method Details
-
download
downloads a dependency file- Parameters:
fileName- the file namefileUrl- the file urldirPath- the directory path- Throws:
IOException- if the download fails
-
load
loads the dependency file- Parameters:
file- the file- Throws:
IOException- if the dependency file doesn't existIllegalAccessException- if the dependency file isn't a .jar
-
loadDir
loads all dependencies on a specific directory- Parameters:
dirPath- the directory path- Throws:
IOException- if the dependency file doesn't existIllegalAccessException- if the dependency file isn't a .jar
-
download
downloads the dependencies- Parameters:
dependencies- the dependenciesdirPath- the directory path- Throws:
IOException- if the download fails
-