You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/11/23 18:15:19 UTC
(maven-changes-plugin) branch agan created (now 4233cd2)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch agan
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
at 4233cd2 default
This branch includes the following new commits:
new 4233cd2 default
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-changes-plugin) 01/01: default
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch agan
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
commit 4233cd24a5858ab6054b6cddced604a58840482f
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Nov 23 13:15:08 2024 -0500
default
---
.../org/apache/maven/plugins/announcement/AnnouncementMailMojo.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java b/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java
index 639ef2a..21b15dc 100644
--- a/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java
+++ b/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java
@@ -27,6 +27,7 @@ import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
+import java.nio.charset.Charset;
import java.util.List;
import org.apache.maven.model.Developer;
@@ -338,7 +339,7 @@ public class AnnouncementMailMojo extends AbstractAnnouncementMojo {
protected String readAnnouncement(File file) throws MojoExecutionException {
try {
if (templateEncoding == null || templateEncoding.isEmpty()) {
- templateEncoding = System.getProperty("file.encoding");
+ templateEncoding = Charset.defaultCharset().displayName();
getLog().warn("File encoding has not been set, using platform encoding '" + templateEncoding
+ "', i.e. build is platform dependent!");
}