Skip to content

Commit

Permalink
Merge pull request #705 from hazendaz/master
Browse files Browse the repository at this point in the history
[cleanup] Use standard java over plexus utils
  • Loading branch information
hazendaz authored Dec 17, 2023
2 parents bdd09c9 + d3fe2f7 commit 0fb8451
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/it/MFINDBUGS-145/verify.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.codehaus.plexus.util.FileUtils;

import java.io.*;
import java.util.*;
import java.io.File;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

String[] paths =
{
Expand All @@ -34,7 +37,7 @@ for ( String path : paths ) {
}

File report = new File( basedir, "target/site/spotbugs.html" );
String content = FileUtils.fileRead( report, "UTF-8" );
String content = new String(Files.readAllBytes(report.toPath()), StandardCharsets.UTF_8);
if ( content.indexOf( "<a href=\"./xref/org/codehaus/mojo/spotbugsmavenplugin/it/mfindbugs145/App.html#L32\">" ) < 0 ) {
throw new IOException( "XRef link not generated." );
}
Expand Down

0 comments on commit 0fb8451

Please sign in to comment.