Skip to content

Commit bd28905

Browse files
committed
Modernize I/O
1 parent f3c8c7b commit bd28905

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.codehaus.plexus.mailsender.MailMessage;
4242
import org.codehaus.plexus.mailsender.MailSenderException;
4343
import org.codehaus.plexus.util.IOUtil;
44-
import org.codehaus.plexus.util.ReaderFactory;
4544

4645
/**
4746
* Goal which sends an announcement through email.
@@ -339,7 +338,7 @@ protected void sendMessage() throws MojoExecutionException {
339338
protected String readAnnouncement(File file) throws MojoExecutionException {
340339
try {
341340
if (templateEncoding == null || templateEncoding.isEmpty()) {
342-
templateEncoding = ReaderFactory.FILE_ENCODING;
341+
templateEncoding = System.getProperty("file.encoding");
343342
getLog().warn("File encoding has not been set, using platform encoding '" + templateEncoding
344343
+ "', i.e. build is platform dependent!");
345344
}

0 commit comments

Comments
 (0)