From 099d900ffd9fd2f03ea880cb1e2dd10f33d68752 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 15:11:54 +0900 Subject: [PATCH] =?UTF-8?q?close=E5=87=A6=E7=90=86=E3=82=92=E5=AE=9F?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/processor/impl/DocumentProcessorImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index cf0d846d..938e55f3 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -161,6 +161,15 @@ public class DocumentProcessorImpl implements DocumentProcessor{ @Override public void close() { - + logger.debug("close", "called"); + // TODO-rca: ここでxmlファイルを保存する + try { + this.fileManager.saveDocument(xmlMetaParser.serialize(xmlMetaModel), "meta.xml"); + logger.debug("close", "meta.xml saved"); + } catch (Exception e) { + logger.error("close", "meta.xml save failed"); + logger.trace("close", e.getMessage()); + } + logger.info("close", "finished"); } }