-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify UTF-8 when reading build log #267
Conversation
Looks like Mac builds are borked: Error: Could not find satisfied version for SemVer '8'. |
Previous builds were using zulu: |
The difference is because you push to branches in this repository. |
please rebase branch with current master ... |
@@ -210,7 +212,8 @@ public void logFailedBuildLog(Log logger, boolean ignoreFailures) throws MojoFai | |||
buildLogMessage.append(System.lineSeparator()); | |||
buildLogMessage.append("*** begin build.log for: " + buildJob.getProject() + " ***"); | |||
buildLogMessage.append(System.lineSeparator()); | |||
try (FileReader buildLogReader = new FileReader(buildLogFile)) { | |||
try (Reader buildLogReader = | |||
Files.newBufferedReader(buildLogFile.toPath(), StandardCharsets.UTF_8)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to specify the UTF-8 encoding, that's the default for the NIO File api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
also buffer the reader