| | |
| | | die HTML-Datei noch nicht existiert |
| | | */ |
| | | if(!htmlfile.exists() || adocfile.lastModified() > htmlfile.lastModified()) { |
| | | logger.fine("calling transform for " + absname); |
| | | transform(absname); |
| | | } |
| | | |
| | |
| | | * 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(); |
| | |
| | | .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); |
| | | } |
| | | |
| | | } |