if (path.endsWith(".jar") || path.endsWith(".zip"))
extract.from(delayedFile(path));
}
}
GenDevProjectsTask task = makeTask("generateProjectClean", GenDevProjectsTask.class);
{
task.setTargetDir(delayedFile(ECLIPSE_CLEAN));
task.setJson(delayedFile(MCPC_JSON_DEV)); // Change to FmlConstants.JSON_BASE eventually, so that it's the base vanilla json
task.addSource(delayedFile(ECLIPSE_CLEAN_SRC));
task.addResource(delayedFile(ECLIPSE_CLEAN_RES));
task.dependsOn("extractNatives");
}
task = makeTask("generateProjectMcpc", GenDevProjectsTask.class);
{
task.setJson(delayedFile(MCPC_JSON_DEV));
task.setTargetDir(delayedFile(ECLIPSE_MCPC));
task.addSource(delayedFile(ECLIPSE_MCPC_SRC));
task.addSource(delayedFile(MCPC_SOURCES));
task.addTestSource(delayedFile(MCPC_TEST_SOURCES));
task.addResource(delayedFile(ECLIPSE_MCPC_RES));
task.addResource(delayedFile(MCPC_RESOURCES));
task.addResource(delayedFile(EXTRACTED_RES));
task.addTestSource(delayedFile(MCPC_TEST_SOURCES));
task.dependsOn("extractRes", "extractNatives","createVersionPropertiesFML");
}
makeTask("generateProjects").dependsOn("generateProjectClean", "generateProjectMcpc");
}