Skip to content
Prev Previous commit
Next Next commit
support to merge content
  • Loading branch information
VamshikShetty committed Feb 15, 2019
commit 5f3032fc339b70f645c4da7b1a2ef405ebaa4051
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,10 @@ public Reader getTemplate(String name) {
.defaultValue("")
.compile(template);

writeToFile(outputFilename, tmpl.execute(bundle));
String contents = tmpl.execute(bundle);
if(support.merge)
contents = mergeFileContent(outputFilename, contents);
writeToFile(outputFilename, contents);
File written = new File(outputFilename);
files.add(written);
if (config.isEnablePostProcessFile()) {
Expand Down