mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
MigrationXmlWriter adds DOCTYPE xml to avoid warning of missing external DTD in eclipse IDE. (#937)
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user