File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/org/apache/maven/plugins/javadoc Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2020
2121import java .io .File ;
2222import java .io .IOException ;
23+ import java .nio .charset .CharacterCodingException ;
24+ import java .nio .charset .Charset ;
2325import java .nio .file .DirectoryStream ;
2426import java .nio .file .Files ;
2527import java .nio .file .Path ;
@@ -56,8 +58,12 @@ public static List<String> getStaleData(Commandline cmd) throws MavenReportExcep
5658 for (String arg : args ) {
5759 if (arg .startsWith ("@" )) {
5860 String name = arg .substring (1 );
59- options .addAll (Files .readAllLines (dir .resolve (name ), UTF_8 ));
6061 ignored .add (name );
62+ try {
63+ options .addAll (Files .readAllLines (dir .resolve (name ), UTF_8 ));
64+ } catch (CharacterCodingException e ) {
65+ options .addAll (Files .readAllLines (dir .resolve (name ), Charset .defaultCharset ()));
66+ }
6167 }
6268 }
6369 List <String > state = new ArrayList <>(options );
You can’t perform that action at this time.
0 commit comments