Skip to content

Commit c5b8aff

Browse files
authored
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
1 parent bd8cafc commit c5b8aff

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/main/mdo/assembly-component.mdo

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@
173173
<![CDATA[
174174
When &lt;include&gt; subelements are present, they define a set of
175175
files and directory to include. If none is present, then
176-
&lt;includes&gt; represents all valid values.
176+
&lt;includes&gt; represents all valid values. Note that this pattern
177+
can be in the from of a regular expression by using the %regex[...]
178+
syntax.
177179
]]>
178180
</description>
179181
</field>
@@ -188,7 +190,9 @@
188190
<![CDATA[
189191
When &lt;exclude&gt; subelements are present, they define a set of
190192
files and directory to exclude. If none is present, then
191-
&lt;excludes&gt; represents no exclusions.
193+
&lt;excludes&gt; represents no exclusions. Note that this pattern
194+
can be in the from of a regular expression by using the %regex[...]
195+
syntax.
192196
]]>
193197
</description>
194198
</field>

src/main/mdo/assembly.mdo

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@
293293
<![CDATA[
294294
When &lt;include&gt; subelements are present, they define a set of
295295
files and directory to include. If none is present, then
296-
&lt;includes&gt; represents all valid values.
296+
&lt;includes&gt; represents all valid values. Note that this pattern
297+
can be in the from of a regular expression by using the %regex[...]
298+
syntax.
297299
]]>
298300
</description>
299301
</field>
@@ -308,7 +310,9 @@
308310
<![CDATA[
309311
When &lt;exclude&gt; subelements are present, they define a set of
310312
files and directory to exclude. If none is present, then
311-
&lt;excludes&gt; represents no exclusions.
313+
&lt;excludes&gt; represents no exclusions. Note that this pattern
314+
can be in the from of a regular expression by using the %regex[...]
315+
syntax.
312316
]]>
313317
</description>
314318
</field>

src/site/apt/advanced-descriptor-topics.apt.vm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ Advanced Assembly-Descriptor Topics
214214
of <<<fileSet>>> patterns, including the option to change the default pattern syntax
215215
someday.
216216

217+
<Note:> The same syntax is also supported for include patterns.
218+
217219
** Example: Including directories named <<<target>>> in the <<<src>>> directory
218220

219221
In this example, we want to produce a buildable source distribution of a

0 commit comments

Comments
 (0)