-
Notifications
You must be signed in to change notification settings - Fork 126
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
Support multiple source roots in report generators (issue #104) #109
Conversation
…Seq[File]) as input parameter.
…urce root matches), this means there are some configuration problems and failing fast is better solution than generating inproper file paths (causing IOExceptions later).
… <sources> section.
…XmlReportWriter).
) | ||
sourceRoot match { | ||
case Some(path: String) => src.replace(path, "") | ||
case _ => throw new RuntimeException(s"No source root found for '$src'"); //TODO Change exception class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to decide what exception will be the best :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe IllegalArgumentException
? Method contract states src
must have at least one source root in given sourcePaths
.
Reviewed, aside from minor nitpicks LGTM. |
I forgot to fix tests. |
Support multiple source roots in report generators (issue #104)
Merged manually - db86022 |
… specified path, shows all source root paths for easier problems detection.
…se class created and common code moved there. "IOUtils.relativeSource" moved there too, because it's reports specific and works on paths as strings, not real files.
PR for #104