[
https://issues.apache.org/jira/browse/MSITE-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17869206#comment-17869206
]
ASF GitHub Bot commented on MSITE-945:
--------------------------------------
FredrikAnderson commented on code in PR #202:
URL: https://github.com/apache/maven-site-plugin/pull/202#discussion_r1694344174
##########
src/test/java/org/apache/maven/plugins/site/deploy/AbstractSiteDeployWebDavTest.java:
##########
@@ -219,14 +221,14 @@ public void davDeployThruProxyWitAuthzInProxy() throws
Exception {
}
private void assertContentInFiles() throws Exception {
- File htmlFile = new File(siteTargetPath, "site" + File.separator +
"index.html");
- assertTrue(htmlFile.exists());
- String fileContent = FileUtils.readFileToString(htmlFile,
StandardCharsets.UTF_8);
+ File fileToTest = new File(siteTargetPath, "site" + File.separator +
"index.html");
Review Comment:
New method for reading file, readFileToString, using Files.lines, which
default uses charset UTF-8 for reading.
> Remove dependency on Commons IO
> -------------------------------
>
> Key: MSITE-945
> URL: https://issues.apache.org/jira/browse/MSITE-945
> Project: Maven Site Plugin
> Issue Type: Dependency upgrade
> Reporter: Elliotte Rusty Harold
> Priority: Major
> Labels: up-for-grabs
>
> All uses look easily replaceable by standard JDK methods these days
--
This message was sent by Atlassian Jira
(v8.20.10#820010)