This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new c5b8aff6 Document regex support in include/exclude patterns (#1243)
c5b8aff6 is described below

commit c5b8aff698c9ac93925530a31181b68ae04f9749
Author: Tim Lander <[email protected]>
AuthorDate: Sun Nov 23 21:00:26 2025 +0800

    Document regex support in include/exclude patterns (#1243)
    
    * Document that include/exclude can be regex - assembly
    
    * Document that include/exclude can be regex - assembly-component
    
    * Document that include/exclude can be regex - advanced-descriptor-topics
---
 src/main/mdo/assembly-component.mdo            | 8 ++++++--
 src/main/mdo/assembly.mdo                      | 8 ++++++--
 src/site/apt/advanced-descriptor-topics.apt.vm | 2 ++
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/main/mdo/assembly-component.mdo 
b/src/main/mdo/assembly-component.mdo
index 3c1d15ac..c3e1f8de 100644
--- a/src/main/mdo/assembly-component.mdo
+++ b/src/main/mdo/assembly-component.mdo
@@ -173,7 +173,9 @@
             <![CDATA[
             When &lt;include&gt; subelements are present, they define a set of
             files and directory to include. If none is present, then
-            &lt;includes&gt; represents all valid values.
+            &lt;includes&gt; represents all valid values. Note that this 
pattern
+            can be in the from of a regular expression by using the %regex[...]
+            syntax.
             ]]>
           </description>
         </field>
@@ -188,7 +190,9 @@
             <![CDATA[
             When &lt;exclude&gt; subelements are present, they define a set of
             files and directory to exclude. If none is present, then
-            &lt;excludes&gt; represents no exclusions.
+            &lt;excludes&gt; represents no exclusions. Note that this pattern
+            can be in the from of a regular expression by using the %regex[...]
+            syntax.
             ]]>
           </description>
         </field>
diff --git a/src/main/mdo/assembly.mdo b/src/main/mdo/assembly.mdo
index 7372a208..0a9520bf 100644
--- a/src/main/mdo/assembly.mdo
+++ b/src/main/mdo/assembly.mdo
@@ -293,7 +293,9 @@
             <![CDATA[
             When &lt;include&gt; subelements are present, they define a set of
             files and directory to include. If none is present, then
-            &lt;includes&gt; represents all valid values.
+            &lt;includes&gt; represents all valid values. Note that this 
pattern
+            can be in the from of a regular expression by using the %regex[...]
+            syntax.
             ]]>
           </description>
         </field>
@@ -308,7 +310,9 @@
             <![CDATA[
             When &lt;exclude&gt; subelements are present, they define a set of
             files and directory to exclude. If none is present, then
-            &lt;excludes&gt; represents no exclusions.
+            &lt;excludes&gt; represents no exclusions. Note that this pattern
+            can be in the from of a regular expression by using the %regex[...]
+            syntax.
             ]]>
           </description>
         </field>
diff --git a/src/site/apt/advanced-descriptor-topics.apt.vm 
b/src/site/apt/advanced-descriptor-topics.apt.vm
index 8b096c00..ce64646a 100644
--- a/src/site/apt/advanced-descriptor-topics.apt.vm
+++ b/src/site/apt/advanced-descriptor-topics.apt.vm
@@ -214,6 +214,8 @@ Advanced Assembly-Descriptor Topics
   of <<<fileSet>>> patterns, including the option to change the default 
pattern syntax
   someday.
 
+  <Note:> The same syntax is also supported for include patterns.
+
 ** Example: Including directories named <<<target>>> in the <<<src>>> directory
 
   In this example, we want to produce a buildable source distribution of a

Reply via email to