You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Abel Salgado Romero (Jira)" <ji...@apache.org> on 2024/10/08 20:46:00 UTC
[jira] [Comment Edited] (DOXIA-748) Support file filtering in Doxia ParserModule
[ https://issues.apache.org/jira/browse/DOXIA-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887705#comment-17887705 ]
Abel Salgado Romero edited comment on DOXIA-748 at 10/8/24 8:45 PM:
--------------------------------------------------------------------
Thanks, much appreciated! I was able to get something with
{quote}
<moduleExcludes>
<asciidoc>**/_*.*,**/_*</asciidoc>
</moduleExcludes>
{quote}
I could not make it to ignore folders though. But I think now that I am trying to enforce the conventions from the AsciidoctorMojo in the Site module, and that's probably not a good idea.
I'll document the differences and suggest the `moduleExcludes`.
Thanks again, feel free to close this issue
was (Author: abel s.romero):
Thanks, much appreciated! I was able to get something with
{quote}
<moduleExcludes>
<asciidoc>**/_*.*,**/_*</asciidoc>
</moduleExcludes>
{quote}
I could not make it to ignore folders though. But I think now that I am trying to enforce the conventions from the AsciidoctorMojo in the Site module, and that's probably not a good idea.
I'll document the differences and suggest the `moduleExcludes`.
Thanks again
> Support file filtering in Doxia ParserModule
> --------------------------------------------
>
> Key: DOXIA-748
> URL: https://issues.apache.org/jira/browse/DOXIA-748
> Project: Maven Doxia
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0
> Reporter: Abel Salgado Romero
> Priority: Minor
>
> When defining a module one can define the file extensions to process.
> However, more complex scenarios require more than a extension.
> For example, in the [Asciidoctor module|https://github.com/asciidoctor/asciidoctor-maven-plugin/issues] it's possible to have "hidden" (use _ prefix) files that are not to be converted directly, instead these are to be included in others.
> My first though is to be able to pass a `FilenameFilter` in the constructor. The filter would be matched against files that comply with the file extensions to confirm whether these should be processed or not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)