if (rejectFile != null)
{
try
{
ExistingFileBehavior existingBehavior;
if (overwrite.isPresent())
{
existingBehavior = ExistingFileBehavior.OVERWRITE;
}
else
{
existingBehavior = ExistingFileBehavior.APPEND;
}
importConfig.writeRejectedEntries(rejectFile.getValue(),
existingBehavior);
}
catch (Exception e)
{
Message message = ERR_LDIFIMPORT_CANNOT_OPEN_REJECTS_FILE.get(
rejectFile.getValue(), getExceptionMessage(e));
logError(message);
return 1;
}
}
if (skipFile != null)
{
try
{
ExistingFileBehavior existingBehavior;
if (overwrite.isPresent())
{
existingBehavior = ExistingFileBehavior.OVERWRITE;
}
else