From: David Gageot Date: Tue, 1 May 2012 06:50:03 +0000 (+0200) Subject: Trying to fix the build on windows X-Git-Tag: 3.1~316 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dad9c03d2ff2fceaf0a3933d922c9f8daff62e60;p=sonarqube.git Trying to fix the build on windows --- diff --git a/plugins/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdConfigurationTest.java b/plugins/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdConfigurationTest.java index 1964f5c9538..411eaa387d7 100644 --- a/plugins/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdConfigurationTest.java +++ b/plugins/sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdConfigurationTest.java @@ -90,7 +90,7 @@ public class PmdConfigurationTest { @Test public void should_dump_xml_report() throws IOException { - when(fs.writeToWorkingDirectory(matches(".*[\r\n]*"), eq("pmd-result.xml"))).thenReturn(new File("/workingDir/pmd-result.xml")); + when(fs.writeToWorkingDirectory(matches("(?s).*.*"), eq("pmd-result.xml"))).thenReturn(new File("/workingDir/pmd-result.xml")); settings.setProperty(PmdConfiguration.PROPERTY_GENERATE_XML, true); File reportFile = configuration.dumpXmlReport(new Report());