Skip to content

Commit

Permalink
Modernize I/O
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 22, 2024
1 parent f3c8c7b commit bd28905
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import org.codehaus.plexus.mailsender.MailMessage;
import org.codehaus.plexus.mailsender.MailSenderException;
import org.codehaus.plexus.util.IOUtil;
import org.codehaus.plexus.util.ReaderFactory;

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

0 comments on commit bd28905

Please sign in to comment.