gnodet commented on code in PR #531:
URL:
https://github.com/apache/maven-resources-plugin/pull/531#discussion_r4127348657
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -61,6 +61,26 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter(defaultValue = "${project.build.sourceEncoding}")
protected String encoding;
+ /**
+ * The character encoding to use when writing filtered resources.
+ * When set, enables encoding conversion during filtering: resources are
read with {@link #encoding}
+ * and written with this encoding. Useful to convert legacy EBCDIC or
Latin-1 source files to UTF-8
+ * (or vice-versa) as part of the build.
+ * <p>
+ * When not set (the default), the same encoding is used for reading and
writing, preserving
+ * backward compatibility.
+ * </p>
+ * <p>
+ * This parameter is ignored when filtering is disabled (i.e. when no
resource has
+ * {@code <filtering>true</filtering>}), because non-filtered
files are always copied
+ * as raw bytes.
+ * </p>
+ *
+ * @since 3.4.1
Review Comment:
Fixed in c87ba70948b0deb7e62684c179eb939081280491.
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -61,6 +61,26 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter(defaultValue = "${project.build.sourceEncoding}")
protected String encoding;
+ /**
+ * The character encoding to use when writing filtered resources.
+ * When set, enables encoding conversion during filtering: resources are
read with {@link #encoding}
+ * and written with this encoding. Useful to convert legacy EBCDIC or
Latin-1 source files to UTF-8
+ * (or vice-versa) as part of the build.
+ * <p>
+ * When not set (the default), the same encoding is used for reading and
writing, preserving
+ * backward compatibility.
+ * </p>
+ * <p>
+ * This parameter is ignored when filtering is disabled (i.e. when no
resource has
+ * {@code <filtering>true</filtering>}), because non-filtered
files are always copied
+ * as raw bytes.
+ * </p>
+ *
+ * @since 3.4.1
Review Comment:
Fixed in c87ba70948b0deb7e62684c179eb939081280491.
##########
src/main/java/org/apache/maven/plugins/resources/ResourcesMojo.java:
##########
@@ -61,6 +61,26 @@ public class ResourcesMojo implements
org.apache.maven.api.plugin.Mojo {
@Parameter(defaultValue = "${project.build.sourceEncoding}")
protected String encoding;
+ /**
+ * The character encoding to use when writing filtered resources.
+ * When set, enables encoding conversion during filtering: resources are
read with {@link #encoding}
+ * and written with this encoding. Useful to convert legacy EBCDIC or
Latin-1 source files to UTF-8
+ * (or vice-versa) as part of the build.
+ * <p>
+ * When not set (the default), the same encoding is used for reading and
writing, preserving
+ * backward compatibility.
+ * </p>
+ * <p>
+ * This parameter is ignored when filtering is disabled (i.e. when no
resource has
+ * {@code <filtering>true</filtering>}), because non-filtered
files are always copied
+ * as raw bytes.
+ * </p>
+ *
+ * @since 3.4.1
Review Comment:
Fixed in c87ba70948b0deb7e62684c179eb939081280491.
--
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]