argv.add("-p"+repo);
}
if (revision != null) {
argv.add("-aV:"+revision);
}
Executor exec = new Executor(argv, file.getParentFile());
int status = exec.exec();
if (status != 0) {
OpenGrokLogger.getLogger().log(Level.WARNING,
"Failed annotate for: {2} \"{0}\" Exit code: {1}",
new Object[]{file.getAbsolutePath(), String.valueOf(status), revision});
}
return parseAnnotation(exec.getOutputReader(), file.getName());
}