[ 
https://issues.apache.org/jira/browse/TRAINING-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sönke Liebau updated TRAINING-14:
---------------------------------
    Status: Patch Available  (was: Open)

Pull request was submitted 

Sent from Mobile for Jira Pro

> Generation of slides from multiple input doesn't work correctly
> ---------------------------------------------------------------
>
>                 Key: TRAINING-14
>                 URL: https://issues.apache.org/jira/browse/TRAINING-14
>             Project: Apache Training
>          Issue Type: Bug
>            Reporter: Sönke Liebau
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When building a slide deck that consists of multiple input .adoc files the 
> build process doesn't always work, depending on the order that files are 
> processed in.
>  
> On my linux laptop, when I build the test release that Justin created I get 
> the following output:
>  
>  
> {code:java}
> [INFO] --- asciidoctor-maven-plugin:2.0.0-RC.1:process-asciidoc 
> (generate-slides) @ navigating-ASF-incubation --- [INFO] Using 'UTF-8' 
> encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] 
> Rendered 
> /home/sliebau/Downloads/apache-training-navigating-ASF-incubation-1.0-incubating/src/main/asciidoc/index.adoc
>  [WARNING] Duplicated destination found: overwriting file: 
> /home/sliebau/Downloads/apache-training-navigating-ASF-incubation-1.0-incubating/target/generated-slides/index.html
>  [INFO] Rendered 
> /home/sliebau/Downloads/apache-training-navigating-ASF-incubation-1.0-incubating/src/main/asciidoc/projectstats.adoc
>  [WARNING] Duplicated destination found: overwriting file: 
> /home/sliebau/Downloads/apache-training-navigating-ASF-incubation-1.0-incubating/target/generated-slides/index.html
>  [INFO] Rendered 
> /home/sliebau/Downloads/apache-training-navigating-ASF-incubation-1.0-incubating/src/main/asciidoc/aboutme.adoc
> {code}
> And my index.html only contains the "about me" slide, because that apparently 
> overwrote all content that was generated earlier.
> On Mac systems the index.adoc seems to be processed last, so this creates 
> proper output, but I assume that this issue would occur for Macs as well in 
> different builds.
> I think the issue comes from using the _outputFile_ parameter in the 
> asciidoctor module. The documentation for this parameter states "Useful for 
> backends that create a single file, e.g. the pdf backend. All output will be 
> redirected to the same file" - and obviously omits the small fact that 
> previous files are killed along the way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to