asciidoc maven not copy folders inside sourceDirecory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoc maven not copy folders inside sourceDirecory

thijs1108
Hi,

I've one index.adoc file that includes a lot asciidoc files inside the sourceDirectory and subfolders inside sourceDirectory. I've told maven to render only index.adoc. That works but asciidoctor maven also creates emty folders with the name of the subfolders above.

Input:

src/   docs/   asciidoc/   a/  a.adoc
                                        b/  b.adoc
                                        index.adoc
                      img/         (images)

Output:

target/  generated-docs/  a/ (empty)
                                            b/ (empty)
                                            index.html
                                            img/ (images)

Expected output:

target/ generated-docs/ index.html
                                          img/ (images)

Here is my pom.xml file:
pom.xml

Do I need to delete a/ and b/ manually every time I render the documents or do I miss a configuration in pom.xml?
Reply | Threaded
Open this post in threaded view
|

Re: asciidoc maven not copy folders inside sourceDirecory

abelsromero
Hi,

The issue with empty folders is known (https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/144) and is not an easy thing to fix because there're many cases to consider.

I can only offer the same advice found in the previous issue, that is, that you integrate some tool to remove the folders once the full process has been completed.