}
protected Map<String, List<File>> calculatePackageMap() {
ProcessBuilder builder = new ProcessBuilder(getCommand());
builder.directory(getRootDir());
ProcessRunner runner = new ProcessRunner(builder);
try {
if (runProcess(runner) == 0) {
return parsePackageMap(runner.getStdOut());
} else {
AnalysisEngine.getInstance().getLogger().logInformation(
"pub " + PUB_LIST_COMMAND + " failed: exit code " + runner.getExitCode());
}
} catch (IOException ioe) {
AnalysisEngine.getInstance().getLogger().logInformation(
"error running pub " + PUB_LIST_COMMAND,
ioe);