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

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


The following commit(s) were added to refs/heads/master by this push:
     new a312a30  Document that $ shadows ${*} in the delimiters parameter
a312a30 is described below

commit a312a30e033c14232e9e6abb7f373ffcb5f4ff99
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Thu Nov 5 14:25:01 2026 +0000

    Document that $ shadows ${*} in the delimiters parameter
---
 src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java 
b/src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java
index 539f700..9797634 100644
--- a/src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java
+++ b/src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java
@@ -225,6 +225,12 @@ public class ResourcesMojo extends AbstractMojo {
      * <p>
      * Since the {@code @} delimiter is the same on both ends, we don't need 
to specify {@code @*@} (though we can).
      * </p>
+     * <p>
+     * A delimiter that is the same on both ends takes precedence over a 
longer delimiter that starts with the same
+     * character, whatever their order: with both {@code $} and {@code ${*}}, 
{@code $name$} is replaced but
+     * {@code ${name}} is copied unchanged, because {@code $} takes its 
opening character and finds no closing
+     * {@code $} on the line.
+     * </p>
      *
      * @since 2.4
      */

Reply via email to