extractRange.setLibsFromProject(delayedFile(ECLIPSE_FORGE + "/build.gradle"), "compile", true);
extractRange.addIn(delayedFile(ECLIPSE_FORGE_SRC));
extractRange.setRangeMap(rangeMapDirty);
}
ApplyS2STask applyS2S = makeTask("retroMapForge", ApplyS2STask.class);
{
applyS2S.addIn(delayedFile(ECLIPSE_FORGE_SRC));
applyS2S.setOut(delayedFile(PATCH_DIRTY));
applyS2S.addSrg(delayedFile(MCP_2_SRG_SRG));
applyS2S.addExc(delayedFile(MCP_EXC));
applyS2S.addExc(delayedFile(SRG_EXC)); // just in case
applyS2S.setRangeMap(rangeMapDirty);
applyS2S.dependsOn("genSrgs", extractRange);
}
extractRange = makeTask("extractRangeClean", ExtractS2SRangeTask.class);
{
extractRange.setLibsFromProject(delayedFile(ECLIPSE_CLEAN + "/build.gradle"), "compile", true);
extractRange.addIn(delayedFile(REMAPPED_CLEAN));
extractRange.setRangeMap(rangeMapClean);
}
applyS2S = makeTask("retroMapClean", ApplyS2STask.class);
{
applyS2S.addIn(delayedFile(REMAPPED_CLEAN));
applyS2S.setOut(delayedFile(PATCH_CLEAN));
applyS2S.addSrg(delayedFile(MCP_2_SRG_SRG));
applyS2S.addExc(delayedFile(MCP_EXC));
applyS2S.addExc(delayedFile(SRG_EXC)); // just in case
applyS2S.setRangeMap(rangeMapClean);
applyS2S.dependsOn("genSrgs", extractRange);
}
GeneratePatches task2 = makeTask("genPatches", GeneratePatches.class);
{
task2.setPatchDir(delayedFile(FORGE_PATCH_DIR));