MigrationXmlWriter adds DOCTYPE xml to avoid warning of missing external DTD in eclipse IDE. (#937)

This commit is contained in:
Michael Benz
2017-01-05 09:16:39 +13:00
committed by Rob Bygrave
parent 9be0d22cfb
commit 4c40962f04
@@ -22,7 +22,7 @@ public class MigrationXmlWriter {
}
/**
* Write a Migration to a file as an xml document to the file.
* Write a Migration as a standalone XML document to a file.
*/
public void write(Migration migration, File file) {
@@ -30,6 +30,7 @@ public class MigrationXmlWriter {
FileWriter writer = new FileWriter(file);
writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n");
writer.write("<!DOCTYPE xml>\n");
if (comment != null) {
writer.write("<!-- ");
writer.write(comment);