Merge "Better way to handle relative URLs in manifest XML"

This commit is contained in:
Dave Borowitz 2014-06-09 13:26:25 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit c8ddac2a86
1 changed files with 2 additions and 2 deletions

View File

@ -351,8 +351,8 @@ public void endDocument() throws SAXException {
}
final String remoteUrl;
try {
URI uri = new URI(String.format("%s/%s/", baseUrl, remotes.get(defaultRemote))); //$NON-NLS-1$
remoteUrl = uri.normalize().toString();
URI uri = new URI(baseUrl);
remoteUrl = uri.resolve(remotes.get(defaultRemote)).toString();
} catch (URISyntaxException e) {
throw new SAXException(e);
}