Refactor URL replacement in karaf-plugin 40/85140/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Oct 2019 08:57:29 +0000 (10:57 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Oct 2019 09:03:15 +0000 (11:03 +0200)
commitec246f7bb4ce46651adbca45d3b8cdc9bda1fa12
treef06d45a253d45235b892439f00404184d525ebfb
parent345e795041440a0ee757166a0f5c0492e2417e9e
Refactor URL replacement in karaf-plugin

We need to be mindful of file separators when dealing with URI/URLs.
While File-based strings are using platform-dependend separator,
either '/' (Unices) or '\' (Windows et al.), file: URI scheme is
using '/' to separate path components (as per RFC8089).

Make sure we preserve the semantic context and perform proper
conversion between the two representations.

JIRA: ODLPARENT-214
Change-Id: I8d20ee1bdb4bfb3c1f675423a3849082c21fe26c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
karaf-plugin/src/main/java/org/opendaylight/odlparent/PopulateLocalRepoMojo.java