forked from phoedos/pmd
Fix testSourceUri generation
This commit is contained in:
@ -435,7 +435,7 @@ public abstract class RuleTst {
|
||||
Element root = doc.getDocumentElement();
|
||||
NodeList testCodes = root.getElementsByTagName("test-code");
|
||||
|
||||
String absolutePathToTestXmlFile = new File(".").getAbsolutePath() + "/src/test/resources/"
|
||||
String absolutePathToTestXmlFile = new File(".").getAbsoluteFile().toURI() + "/src/test/resources/"
|
||||
+ this.getClass().getPackage().getName().replaceAll("\\.", "/")
|
||||
+ "/" + testXmlFileName;
|
||||
|
||||
|
@ -168,7 +168,7 @@ public class TestDescriptor {
|
||||
}
|
||||
|
||||
public void setTestSourceUri(String absolutePath, int line) {
|
||||
this.testSourceUri = URI.create("file:" + absolutePath + "?line=" + line);
|
||||
this.testSourceUri = URI.create(absolutePath + "?line=" + line);
|
||||
}
|
||||
|
||||
public URI getTestSourceUri() {
|
||||
|
Reference in New Issue
Block a user