try {
// try to make sure path exists
outputFile.getParentFile().mkdirs();
Writer w = new FileWriter(outputFile);
new LocalProctorBuilder(topDirectory, w, "".equals(author) ? author : null, version).execute();
w.close();
} catch (Exception e) {
throw new MojoExecutionException("Failure during builder execution", e);
}
}