{
Jar repackageTask = (Jar) project.getTasks().getByName("repackMinecraft");
final DelayedFile recomp = delayedDirtyFile(getSrcDepName(), null, "jar");
//done in the delayed configuration.
File out = recomp.call();
repackageTask.setArchiveName(out.getName());
repackageTask.setDestinationDir(out.getParentFile());
}
// Add the mod and stuff to the classpath of the exec tasks.