Merge "Better way to handle relative URLs in manifest XML"
This commit is contained in:
commit
c8ddac2a86
|
@ -351,8 +351,8 @@ public void endDocument() throws SAXException {
|
||||||
}
|
}
|
||||||
final String remoteUrl;
|
final String remoteUrl;
|
||||||
try {
|
try {
|
||||||
URI uri = new URI(String.format("%s/%s/", baseUrl, remotes.get(defaultRemote))); //$NON-NLS-1$
|
URI uri = new URI(baseUrl);
|
||||||
remoteUrl = uri.normalize().toString();
|
remoteUrl = uri.resolve(remotes.get(defaultRemote)).toString();
|
||||||
} catch (URISyntaxException e) {
|
} catch (URISyntaxException e) {
|
||||||
throw new SAXException(e);
|
throw new SAXException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue