Now stores files in the user gradle folder, will prevent downloading assets for each project

This commit is contained in:
modmuss50
2016-08-25 12:42:23 +01:00
parent 547c242ff0
commit 3eb9b77746
8 changed files with 60 additions and 24 deletions

View File

@@ -49,10 +49,14 @@ public class MapJarsTask extends DefaultTask {
if (Constants.MAPPINGS_DIR.exists()) {
FileUtils.deleteDirectory(Constants.MAPPINGS_DIR);
}
if (Constants.MINECRAFT_MAPPED_JAR.get(extension).exists()) {
Constants.MINECRAFT_MAPPED_JAR.get(extension).delete();
}
ZipUtil.unpack(Constants.MAPPINGS_ZIP, Constants.MAPPINGS_DIR);
File tempFile = new File(Constants.CACHE_FILES, "tempJar.jar");
if (tempFile.exists()) {
//This should not happen, just want to be safe
tempFile.delete();
}