-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected warnings "Duplicated destination found: overwriting file: ..." #728
Comments
Thanks! The issue is with the validation, not the real paths. Internally it's comparing with the source filename only "index.adoc" because the plugin is still checking the deprecated If you are wondering "why a deprecation is breaking things", the plugin uses the internal asciidoctor Map to check the configuration and we haven't been able to find a solution to provide a safe Java API but also provide the information for users needing it. Precisely to avoid these cases. The issue is already fixed in Btw, a suggestions, don't use the |
Btw, if you already have "modules" with dedicated TOC, you may want to have a look at Antora. Seems you are already halfway through the requirements. The docs site is built with it https://docs.asciidoctor.org/. |
Well, then why are those paths - partly fantasy paths, like I said, which makes it worse - displayed in the warnings? You cannot expect users to understand the problem like this. Warnings ought to help users to solve problems, not confuse them.
That does not sound so helpful.
Sorry, I think I do not fully understand that explanation, because I actually never have used Asciidoctor or Asciidoctorj from the command line. The Maven plugin is my first contact. I.e., I only know the options described here. How exactly they map to lower-level CLI options, I have no idea.
😱
That might help, but I wanted to avoid it and not change the directory structure in place since 2004 or so a lot. FYI, I am converting docs generation from a mix of ancient XML DocBook files and another bunch of hand-written HTML to asciidoc. The docs are converted already and looking fine, now I just want to add HTML and PDF generation to the build (again). Anyway, I have come so far already, maybe in the end I will have to transition to a "convention over configuration" approach with a more standardised directory layout. Thank you so much for your advice. |
Newer versions of AsciidoctorJ deprecated destinationDir and only use toDir, which caused the plugin to report paths being overwritten incorrectly. Closes asciidoctor#728
* Check for both destinationDir and toDir when calculating destination Newer versions of AsciidoctorJ deprecated destinationDir and only use toDir, which caused the plugin to report paths being overwritten incorrectly. * Improve warning message Closes #728
Looking good in 2.2.5, the warnings are gone. Thank you very much. 😊🎈 |
Thank you for taking your time to talk with us!
What is this issue about?
Description
My POM looks like this:
There are a few ADOC file in the module root and a few dozen more in several subdirectories. Per subdirectory, there usually is one main ADOC creating a TOC and simply linking to subpages via
xref:
and another variant of the main ADOC usinginclude::
directives. As far as I can see, the output HTML files are created correctly. Anyway, I see several log messages like this:This is irritating for several reasons:
IMO, the warnings are just false. Even if they were not, the printed fantasy paths do not make any sense. I strongly hope that the plugin does not write any intermediary output into the source folder.
Environment information
asciidoctor-maven-plugin version: 2.2.4
asciidoctorj version: ?
Maven, Java and OS version: Maven 3.6.3, 3.9.5, Java 21, Windows 10 Pro
The text was updated successfully, but these errors were encountered: