use of org.talend.core.ui.export.ArchiveFileExportOperationFullPath in project tmdm-studio-se by Talend.
the class DeployOnMDMExportWizardPage method exportJob.
private boolean exportJob(ExportFileResource p, boolean needContextScript, IProgressMonitor monitor) {
String label = getProcessName(p);
monitor.setTaskName(Messages.bind(Messages.DeployOnMDMExportWizardPage_exporting, label));
if (!ensureTargetIsValid(p)) {
setDeploySucceed(false);
return false;
}
List<ExportFileResource> resourcesToExport = null;
try {
resourcesToExport = getExportResources(p);
} catch (ProcessorException e) {
MessageBoxExceptionHandler.process(e);
setDeploySucceed(false);
return false;
}
String topFolder = getRootFolderName(p);
setTopFolder(resourcesToExport, topFolder);
ArchiveFileExportOperationFullPath exporterOperation = getExporterOperation(p, resourcesToExport);
boolean ok = executeExportOperation(exporterOperation);
// TODO What if not ok ????
// path can like name/name
manager.deleteTempFiles();
ProcessorUtilities.resetExportConfig();
monitor.worked(W_EXPORT_PROCESS);
return true;
}
Aggregations