Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent use of canonicalPath and absolutePath #74

Closed
rigoford opened this issue Dec 15, 2014 · 0 comments
Closed

Inconsistent use of canonicalPath and absolutePath #74

rigoford opened this issue Dec 15, 2014 · 0 comments

Comments

@rigoford
Copy link
Contributor

There appears to be an inconsistent use of "canonicalPath" (e.g. in Location.scala) and "getAbsolutePath" (e.g. in ScoverageHtmlWriter.scala), according to the JavaDoc for java.io.File, "getCanonicalPath" with convert the drive letter to a standard case (for me upper case) while "getAbsolutePath" does not.

This appears to cause "mvn scoverage:report" to fail when run in certain environments (e.g. in git bash on Windows 7). Running "mvn scoverage:report" against scoverage-samples (pom.xml suitable updated for the new version) gives:

[ERROR] c:\workspaces\Misc\scoverage\scoverage-samples\target\site\scoverage\C:\workspaces\Misc\scoverage\scoverage-samples\src\main\scala\com\sksamuel\scoverage\samples\Si
mpleObject.scala.html (The filename, directory name, or volume label syntax is incorrect)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants