try {
destfile.getParentFile().mkdirs();
destfile.createNewFile();
outputStream = new BufferedOutputStream(new FileOutputStream(
destfile));
final ExecutionDataWriter dataWriter = new ExecutionDataWriter(
outputStream);
dataStore.accept(dataWriter);
} catch (final IOException e) {
throw new BuildException(String.format(
"Unable to write merged file %s", destfile.getName()), e);