// make sure it happens sometime during the build.
project.getTasks().getByName("setupCIWorkspace").dependsOn(task);
project.getTasks().getByName("setupDevWorkspace").dependsOn(task);
project.getTasks().getByName("setupDecompWorkspace").dependsOn(task);
task.doLast(new Action() {
@Override
public void execute(Object arg0)
{
EtagDownloadTask task = (EtagDownloadTask) arg0;
try
{
readJsonDep(task.getFile());
}
catch (IOException e)
{
Throwables.propagate(e);
}
}
});
}
project.afterEvaluate(new Action() {
@Override
public void execute(Object arg0)
{
if (json.call().exists())