gnodet commented on code in PR #527:
URL:
https://github.com/apache/maven-resources-plugin/pull/527#discussion_r4103886921
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -152,11 +153,34 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter
protected String escapeString;
+ /**
+ * Strategy used to decide whether an existing destination file needs to
be overwritten.
+ * Accepted values:
+ * <ul>
+ * <li>{@code CONTENT} — (default) only overwrite when the content
differs (uses
+ * {@code CachingOutputStream} / {@code CachingWriter}); destination
timestamp is
+ * preserved when the content is identical. This is the behaviour
since 3.4.0.</li>
+ * <li>{@code TIMESTAMP} — only overwrite when the source is newer than
the destination
+ * (timestamp-based, as it was before 3.4.0).</li>
+ * <li>{@code TIMESTAMP_AND_CONTENT} — overwrite only when the source is
newer
+ * <em>and</em> the content differs.</li>
+ * <li>{@code ALWAYS} — always overwrite existing files (equivalent to
the former
+ * {@code <overwrite>true</overwrite>}).</li>
+ * <li>{@code NEVER} — never overwrite an existing destination file.</li>
+ * </ul>
+ *
+ * @since 3.4.0
Review Comment:
Fixed in 83ca419.
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -152,11 +153,34 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter
protected String escapeString;
+ /**
+ * Strategy used to decide whether an existing destination file needs to
be overwritten.
+ * Accepted values:
+ * <ul>
+ * <li>{@code CONTENT} — (default) only overwrite when the content
differs (uses
+ * {@code CachingOutputStream} / {@code CachingWriter}); destination
timestamp is
+ * preserved when the content is identical. This is the behaviour
since 3.4.0.</li>
+ * <li>{@code TIMESTAMP} — only overwrite when the source is newer than
the destination
+ * (timestamp-based, as it was before 3.4.0).</li>
+ * <li>{@code TIMESTAMP_AND_CONTENT} — overwrite only when the source is
newer
+ * <em>and</em> the content differs.</li>
+ * <li>{@code ALWAYS} — always overwrite existing files (equivalent to
the former
+ * {@code <overwrite>true</overwrite>}).</li>
+ * <li>{@code NEVER} — never overwrite an existing destination file.</li>
+ * </ul>
+ *
+ * @since 3.4.0
Review Comment:
Fixed in 83ca419.
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -152,11 +153,34 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter
protected String escapeString;
+ /**
+ * Strategy used to decide whether an existing destination file needs to
be overwritten.
+ * Accepted values:
+ * <ul>
+ * <li>{@code CONTENT} — (default) only overwrite when the content
differs (uses
+ * {@code CachingOutputStream} / {@code CachingWriter}); destination
timestamp is
+ * preserved when the content is identical. This is the behaviour
since 3.4.0.</li>
+ * <li>{@code TIMESTAMP} — only overwrite when the source is newer than
the destination
+ * (timestamp-based, as it was before 3.4.0).</li>
+ * <li>{@code TIMESTAMP_AND_CONTENT} — overwrite only when the source is
newer
+ * <em>and</em> the content differs.</li>
+ * <li>{@code ALWAYS} — always overwrite existing files (equivalent to
the former
+ * {@code <overwrite>true</overwrite>}).</li>
+ * <li>{@code NEVER} — never overwrite an existing destination file.</li>
+ * </ul>
+ *
+ * @since 3.4.0
Review Comment:
Fixed in 83ca419.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]