| | |
| | | // Launch the export. |
| | | try |
| | | { |
| | | DirectoryServer.notifyExportBeginning(backend, exportConfig); |
| | | backend.exportLDIF(configEntry, baseDNs, exportConfig); |
| | | DirectoryServer.notifyExportEnded(backend, exportConfig, true); |
| | | } |
| | | catch (DirectoryException de) |
| | | { |
| | | DirectoryServer.notifyExportEnded(backend, exportConfig, false); |
| | | int msgID = MSGID_LDIFEXPORT_ERROR_DURING_EXPORT; |
| | | String message = getMessage(msgID, de.getErrorMessage()); |
| | | logError(ErrorLogCategory.BACKEND, ErrorLogSeverity.SEVERE_ERROR, |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DirectoryServer.notifyExportEnded(backend, exportConfig, false); |
| | | int msgID = MSGID_LDIFEXPORT_ERROR_DURING_EXPORT; |
| | | String message = getMessage(msgID, stackTraceToSingleLineString(e)); |
| | | logError(ErrorLogCategory.BACKEND, ErrorLogSeverity.SEVERE_ERROR, |