Add map reduce job for contact import

Some additional changes were made by Ben McIlwain.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=133875824
This commit is contained in:
Wolfgang Meyers 2016-09-21 14:27:00 -07:00 committed by Ben McIlwain
parent aed3c0f0d0
commit 28eeda189d
21 changed files with 3866 additions and 21 deletions

View file

@ -36,11 +36,14 @@ import google.registry.xjc.rderegistrar.XjcRdeRegistrar;
import java.io.IOException;
import java.io.InputStream;
import javax.inject.Inject;
import javax.xml.bind.JAXBException;
import javax.xml.stream.XMLStreamException;
import org.joda.time.DateTime;
/** Utility functions for escrow file import. */
public final class RdeImportUtils {
/**
* Utility functions for escrow file import.
*/
public class RdeImportUtils {
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
@ -147,7 +150,7 @@ public final class RdeImportUtils {
String.format("Registrar '%s' not found in the registry", registrar.getId()));
}
}
} catch (XMLStreamException e) {
} catch (XMLStreamException | JAXBException e) {
throw new IllegalArgumentException(
String.format("Invalid XML file: '%s'", escrowFilePath), e);
}