proc = pb.start();
} catch (IOException e) {
logger.error("could not start {}: {}", executable, e);
throw new RuntimeException("could not start external process", e);
}
Thread slurp = new LoggingStreamSlurper("build-" + executable, proc.getErrorStream(),
logger, "");
slurp.start();
Cursor<String[]> rows = new DelimitedTextCursor(new BufferedReader(new InputStreamReader(proc.getInputStream())), ",");
try {
for (String[] row: rows) {
// FIXME Add error checking