coverage: sanitize project name to pass valid destination path (IDEA-166719)

This commit is contained in:
Anna.Kozlova
2017-02-20 20:34:11 +01:00
parent 342db515a9
commit 612280effc
@@ -233,7 +233,7 @@ public abstract class CoverageEnabledConfiguration implements JDOMExternalizable
}
@NonNls final String coverageRootPath = PathManager.getSystemPath() + File.separator + "coverage";
final String path = coverageRootPath + File.separator + myProject.getName() + coverageFileNameSeparator()
final String path = coverageRootPath + File.separator + FileUtil.sanitizeFileName(myProject.getName()) + coverageFileNameSeparator()
+ FileUtil.sanitizeFileName(myConfiguration.getName()) + ".coverage";
new File(coverageRootPath).mkdirs();