mirror of
https://github.com/apache/maven.git
synced 2025-02-07 02:29:10 +00:00
[MNG-8218] Always normalize Path in PathSource (#1684)
This commit is contained in:
parent
3f430bbd07
commit
c948b26484
@ -35,8 +35,8 @@ class PathSource implements ModelSource {
|
||||
}
|
||||
|
||||
PathSource(Path path, String location) {
|
||||
this.path = path;
|
||||
this.location = location != null ? location : path.toString();
|
||||
this.path = path.normalize();
|
||||
this.location = location != null ? location : this.path.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -65,7 +65,7 @@ public ModelSource resolve(ModelLocator locator, String relative) {
|
||||
Path path = getPath().getParent().resolve(norm);
|
||||
Path relatedPom = locator.locateExistingPom(path);
|
||||
if (relatedPom != null) {
|
||||
return new PathSource(relatedPom.normalize(), null);
|
||||
return new PathSource(relatedPom);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user