Package net.fabricmc.loom.util
Class HashedDownloadUtil
java.lang.Object
net.fabricmc.loom.util.HashedDownloadUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddownloadIfInvalid(URL from, File to, String expectedHash, org.gradle.api.logging.Logger logger, boolean quiet)static voiddownloadIfInvalid(URL from, File to, String expectedHash, org.gradle.api.logging.Logger logger, boolean quiet, Runnable startDownload)
-
Constructor Details
-
HashedDownloadUtil
public HashedDownloadUtil()
-
-
Method Details
-
downloadIfInvalid
public static void downloadIfInvalid(URL from, File to, String expectedHash, org.gradle.api.logging.Logger logger, boolean quiet) throws IOException- Throws:
IOException
-
downloadIfInvalid
public static void downloadIfInvalid(URL from, File to, String expectedHash, org.gradle.api.logging.Logger logger, boolean quiet, Runnable startDownload) throws IOException- Throws:
IOException
-
delete
-