From 0de53ac0c2118e6820ac7df309ee86ca69982483 Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 24 Jun 2021 12:26:35 +0000 Subject: [PATCH] getFileBase in den FileHandler verlegt --- src/de/uhilger/httpserver/adoc/AdocActor.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/httpserver/adoc/AdocActor.java b/src/de/uhilger/httpserver/adoc/AdocActor.java index 66bbe00..eda9c5c 100644 --- a/src/de/uhilger/httpserver/adoc/AdocActor.java +++ b/src/de/uhilger/httpserver/adoc/AdocActor.java @@ -74,6 +74,7 @@ die HTML-Datei noch nicht existiert */ if(!htmlfile.exists() || adocfile.lastModified() > htmlfile.lastModified()) { + logger.fine("calling transform for " + absname); transform(absname); } @@ -121,6 +122,7 @@ * nach PDF transformiert werden soll */ private void transform(String fileName, String backend) { + logger.fine("fileName: " + fileName + ", backend: " + backend); Map<String, Object> attributes; File outFile = new File(fileName); String thisDirName = outFile.getParent(); @@ -150,9 +152,14 @@ .attributes(attributes).asMap(); } + File adcf = new File(fileName); + logger.fine("before asciidoctor create, adcf: " + adcf.getAbsolutePath()); Asciidoctor asciidoctor = create(); + logger.fine("asciidoctor created."); asciidoctor.requireLibrary("asciidoctor-diagram"); - asciidoctor.convertFile(new File(fileName), options); + logger.fine("asciidoctor requireLibrary diagram passed."); + logger.fine("calling asciidoctor.convert for file " + adcf.getAbsolutePath()); + asciidoctor.convertFile(adcf, options); } } -- Gitblit v1.9.3