shanbin / scoverage-plugin

Jenkins scoverage plugin for Scala code coverage
https://wiki.jenkins-ci.org/display/JENKINS/Scoverage+Plugin
MIT License
6 stars 19 forks source link

Update ScoveragePublisher.java #10

Closed peterlai-roboops closed 8 years ago

peterlai-roboops commented 8 years ago

Prob want to add the matcher.quotereplacement to other places, but just want to fix my problem at the moment

This is to fixed the issue https://github.com/shanbin/scoverage-plugin/issues/8

shanbin commented 8 years ago

The correct fix might be tweaking the pattern string to have all Windows styled paths replaced with "/", as HTML also uses "/".

Matcher.quoteReplacement should be used as the 2nd parameter of replaceAll in most cases.