Skip to content

Commit 03a8f70

Browse files
authored
Merge pull request #46 from allenn/fix-isuss-#45
Write aggregate report throw exception: java.nio.charset.MalformedInputException: Input length = 1 Commit 7be5b77 (in issue #29) added encoding support only in non-aggregated reports.
2 parents 794e9e0 + ce97551 commit 03a8f70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scoverage/plugin/SCoverageReportMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ else if ( !module.getPackaging().equals( "pom" ) )
498498
new ScoverageXmlWriter( sourceRootsAsScalaSeq, topLevelModuleXmlOutputDirectory, false ).write( coverage );
499499

500500
getLog().info( "[scoverage] Generating aggregated scoverage HTML report..." );
501-
new ScoverageHtmlWriter( sourceRootsAsScalaSeq, topLevelModuleOutputDirectory ).write( coverage );
501+
new ScoverageHtmlWriter( sourceRootsAsScalaSeq, topLevelModuleOutputDirectory, Option.<String>apply( encoding ) ).write( coverage );
502502
}
503503

504504
private void mkdirs( File directory )
@@ -522,4 +522,4 @@ private File rebase( File file, MavenProject otherModule )
522522
otherModule.getBasedir().getAbsolutePath() ) );
523523
}
524524

525-
}
525+
}

0 commit comments

Comments
 (0)