task3.setPatch(delayedFile(MCP_PATCH_DIR));
task3.setAstyleConfig(delayedFile(ASTYLE_CFG));
task3.dependsOn("downloadMcpTools", "deobfuscateJar");
}
ProcessSrcJarTask task4 = makeTask("fmlPatchJar", ProcessSrcJarTask.class);
{
task4.setInJar(delayedFile(ZIP_DECOMP_FORGE));
task4.setOutJar(delayedFile(ZIP_FMLED_FORGE));
task4.addStage("fml", delayedFile(FML_PATCH_DIR), delayedFile(FML_SOURCES), delayedFile(FML_RESOURCES), delayedFile("{MAPPINGS_DIR}/patches/Start.java"));
task4.setDoesCache(false);
task4.setMaxFuzz(2);
task4.dependsOn("decompile", "compressDeobfData", "createVersionPropertiesFML");
}
RemapSourcesTask task6 = makeTask("remapSourcesJar", RemapSourcesTask.class);
{
task6.setInJar(delayedFile(ZIP_INJECT_MCPC));
task6.setOutJar(delayedFile(ZIP_RENAMED_MCPC));
task6.setMethodsCsv(delayedFile(METHODS_CSV));
task6.setFieldsCsv(delayedFile(FIELDS_CSV));
task6.setParamsCsv(delayedFile(PARAMS_CSV));
task6.setDoesCache(true);
task6.setDoesJavadocs(false);
task6.dependsOn("fmlPatchJar");
}
Zip task5 = makeTask("forgeInjectJar", Zip.class);
{
task5.from(delayedFileTree(FORGE_SOURCES));
task5.from(delayedFileTree(FORGE_RESOURCES));
task5.from(delayedFileTree(BUKKIT_SOURCES));
task5.from(delayedFileTree(BUKKIT_RESOURCES));
task5.from(delayedZipTree(ZIP_RENAMED_MCPC));
// see ZIP_FINJECT_MCPC
task5.setArchiveName("minecraft_forgeinjected.zip");
task5.setDestinationDir(delayedFile("{BUILD_DIR}/mcpcTmp").call());
task5.dependsOn("remapSourcesJar");
}
task4 = makeTask("forgePatchJar", ProcessSrcJarTask.class);
{
task4.setInJar(delayedFile(ZIP_FINJECT_MCPC));
task4.setOutJar(delayedFile(ZIP_FORGED_MCPC));
task4.addStage("forge", delayedFile(FORGE_PATCH_DIR));
task4.setDoesCache(true);
task4.setMaxFuzz(2);
task4.dependsOn("forgeInjectJar");
}
task4 = makeTask("mcpcPatchJar", ProcessSrcJarTask.class);
{
task4.setInJar(delayedFile(ZIP_FORGED_MCPC));
task4.setOutJar(delayedFile(ZIP_PATCHED_MCPC));
task4.addStage("MCPC", delayedFile(MCPC_PATCH_DIR));
task4.setDoesCache(false);
task4.setMaxFuzz(2);
task4.dependsOn("forgePatchJar");
}
}