This commit is contained in:
r-ca 2024-01-08 12:03:26 +09:00
parent b3be0b9e21
commit 59ba2cdcfc
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -70,7 +70,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
if (fileManager.isExist("meta.xml")) {
logger.debug("init", "meta.xml found");
try {
xmlMetaModel = xmlMetaParser.parse(fileManager.loadText("meta.xml"));
// xmlMetaModel = xmlMetaParser.parse(fileManager.loadText("meta.xml"));
} catch (Exception e) {
logger.debug("init", "meta.xml parse failed");
e.printStackTrace();
@ -85,14 +85,14 @@ public class DocumentProcessorImpl implements DocumentProcessor{
xmlMetaModel.setDefaultBranch(documentDetail.getDefaultBranch());
xmlMetaModel.setPages(new ArrayList<>());
try {
fileManager.createFile("meta.xml");
fileManager.saveText(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
logger.info("init", "meta.xml created");
} catch (Exception e) {
logger.debug("init", "meta.xml create failed");
e.printStackTrace();
}
// try {
// fileManager.createFile("meta.xml");
// fileManager.saveText(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
// logger.info("init", "meta.xml created");
// } catch (Exception e) {
// logger.debug("init", "meta.xml create failed");
// e.printStackTrace();
// }
}
}