in src/main/java/org/apache/maven/doxia/DefaultConverter.java [402:416]
private void postProcessAllFiles(DoxiaFormat outputFormat) throws IOException, InterruptedException {
if (postProcess == PostProcess.GIT_MV_INPUT_TO_OUTPUT) {
// first commit the move operation with original contents
executeCommand(
"git",
"commit",
"-m",
String.format("Move to match target converter format %s with doxia-converter", outputFormat));
for (Map.Entry<Path, Path> entry : outputRenameMap.entrySet()) {
// move back the converted file to the original output name (i.e. overwrite its old content)
Files.move(entry.getKey(), entry.getValue(), StandardCopyOption.REPLACE_EXISTING);
LOGGER.info("Replaced output file \"{}\" with converted file \"{}\"", entry.getValue(), entry.getKey());
}
}
}