File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/org/apache/maven/plugins/announcement Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 41
41
import org .codehaus .plexus .mailsender .MailMessage ;
42
42
import org .codehaus .plexus .mailsender .MailSenderException ;
43
43
import org .codehaus .plexus .util .IOUtil ;
44
- import org .codehaus .plexus .util .ReaderFactory ;
45
44
46
45
/**
47
46
* Goal which sends an announcement through email.
@@ -339,7 +338,7 @@ protected void sendMessage() throws MojoExecutionException {
339
338
protected String readAnnouncement (File file ) throws MojoExecutionException {
340
339
try {
341
340
if (templateEncoding == null || templateEncoding .isEmpty ()) {
342
- templateEncoding = ReaderFactory . FILE_ENCODING ;
341
+ templateEncoding = System . getProperty ( "file.encoding" ) ;
343
342
getLog ().warn ("File encoding has not been set, using platform encoding '" + templateEncoding
344
343
+ "', i.e. build is platform dependent!" );
345
344
}
You can’t perform that action at this time.
0 commit comments