use of org.talend.dataprep.upgrade.repository.model.AppliedUpgradeTask in project data-prep by Talend.
the class FileUpgradeTaskRepository method applied.
/**
* @see UpgradeTaskRepository#applied(String, UpgradeTaskId)
*/
@Override
public void applied(String targetId, UpgradeTaskId id) {
AppliedUpgradeTask task = new AppliedUpgradeTask(id);
File file = new File(getRootFolder(targetId), id.getUniqueKey() + ".json");
try {
mapper.writerFor(AppliedUpgradeTask.class).writeValue(file, task);
} catch (IOException e) {
throw new TDPException(UNEXPECTED_EXCEPTION, e);
}
LOG.debug("{} for {} saved here {}", task, targetId, file.getPath());
}
Aggregations