Skip to content

Commit

Permalink
nio
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 7, 2024
1 parent b680926 commit 7d2a564
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -212,8 +211,7 @@ 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 (Reader buildLogReader =
Files.newBufferedReader(buildLogFile.toPath(), StandardCharsets.UTF_8)) {
try (Reader buildLogReader = Files.newBufferedReader(buildLogFile.toPath())) {
buildLogMessage.append(IOUtil.toString(buildLogReader));
}
buildLogMessage.append("*** end build.log for: " + buildJob.getProject() + " ***");
Expand Down

0 comments on commit 7d2a564

Please sign in to comment.