}
private void ldifDiff(File source, File target, File output,
boolean splitMods)
throws ApplicationException, IOException, InterruptedException {
ExternalTools et = new ExternalTools(installation);
String[] args;
if (splitMods)
{
args = new String[]{
"-o", Utils.getPath(output),
"-O",
"-S"
};
}
else
{
args = new String[]{
"-o", Utils.getPath(output),
"-O"
};
}
OperationOutput oo = et.ldifDiff(source, target, args);
int ret = oo.getReturnCode();
if (ret != 0) {
throw new ApplicationException(
ReturnCode.TOOL_ERROR,
INFO_ERROR_LDIF_DIFF_TOOL_RETURN_CODE.get(Integer.toString(ret)),