processStatus = waitUntilFinished(resource, processStatus);
log.info("finished async source push ({}-{}): {}", projectSlug,
iterationSlug, processStatus.getStatusCode());
if (copyTrans) {
log.info("start copyTrans for {} - {}", projectSlug, iterationSlug);
ICopyTransResource copyTransResource =
zanataProxyFactory.getCopyTransResource();
CopyTransStatus copyTransStatus =
copyTransResource
.startCopyTrans(projectSlug, iterationSlug,
sourceResource.getName());
while (copyTransStatus.isInProgress()) {
try {
Thread.sleep(1000);
}
catch (InterruptedException e) {
throw Throwables.propagate(e);
}
copyTransStatus = copyTransResource.getCopyTransStatus(projectSlug, iterationSlug, sourceResource.getName());
}
log.info("finish copyTrans for {} - {}", projectSlug, iterationSlug);
}
}