use of com.enonic.xp.impl.server.rest.task.listener.SystemLoadListenerImpl in project xp by enonic.
the class LoadRunnableTask method run.
@Override
public void run(final TaskId id, final ProgressReporter progressReporter) {
SystemLoadResultJson result;
loadDumpListener = new SystemLoadListenerImpl(progressReporter);
final Path dumpRoot = getDumpRoot(params.getName());
if (isExport(dumpRoot)) {
result = doLoadFromExport(dumpRoot);
} else {
result = doLoadFromSystemDump(params);
}
progressReporter.info(result.toString());
}
Aggregations