mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
WIP
This commit is contained in:
parent
b3be0b9e21
commit
59ba2cdcfc
|
@ -70,7 +70,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
if (fileManager.isExist("meta.xml")) {
|
if (fileManager.isExist("meta.xml")) {
|
||||||
logger.debug("init", "meta.xml found");
|
logger.debug("init", "meta.xml found");
|
||||||
try {
|
try {
|
||||||
xmlMetaModel = xmlMetaParser.parse(fileManager.loadText("meta.xml"));
|
// xmlMetaModel = xmlMetaParser.parse(fileManager.loadText("meta.xml"));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.debug("init", "meta.xml parse failed");
|
logger.debug("init", "meta.xml parse failed");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -85,14 +85,14 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
xmlMetaModel.setDefaultBranch(documentDetail.getDefaultBranch());
|
xmlMetaModel.setDefaultBranch(documentDetail.getDefaultBranch());
|
||||||
xmlMetaModel.setPages(new ArrayList<>());
|
xmlMetaModel.setPages(new ArrayList<>());
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
fileManager.createFile("meta.xml");
|
// fileManager.createFile("meta.xml");
|
||||||
fileManager.saveText(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
|
// fileManager.saveText(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
|
||||||
logger.info("init", "meta.xml created");
|
// logger.info("init", "meta.xml created");
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
logger.debug("init", "meta.xml create failed");
|
// logger.debug("init", "meta.xml create failed");
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user