This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new add94b5 [KARAF-4662] Trim bundle and config file locations to avoid
parsing issue
add94b5 is described below
commit add94b54167a374ec67e77fba1a42f7d09dc26ef
Author: Jean-Baptiste Onofré <[email protected]>
AuthorDate: Thu Dec 21 15:30:33 2017 +0100
[KARAF-4662] Trim bundle and config file locations to avoid parsing issue
---
.../main/java/org/apache/karaf/kar/internal/KarServiceImpl.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/kar/src/main/java/org/apache/karaf/kar/internal/KarServiceImpl.java
b/kar/src/main/java/org/apache/karaf/kar/internal/KarServiceImpl.java
index f7b6758..8ed5ff8 100644
--- a/kar/src/main/java/org/apache/karaf/kar/internal/KarServiceImpl.java
+++ b/kar/src/main/java/org/apache/karaf/kar/internal/KarServiceImpl.java
@@ -401,22 +401,22 @@ public class KarServiceImpl implements KarService {
throws URISyntaxException {
// add bundles
for (BundleInfo bundleInfo : feature.getBundles()) {
- URI location = new URI(bundleInfo.getLocation());
+ URI location = new URI(bundleInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
// add config files
for (ConfigFileInfo configFileInfo : feature.getConfigurationFiles()) {
- URI location = new URI(configFileInfo.getLocation());
+ URI location = new URI(configFileInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
// add bundles and config files in conditionals
for (Conditional conditional : feature.getConditional()) {
for (BundleInfo bundleInfo : conditional.getBundles()) {
- URI location = new URI(bundleInfo.getLocation());
+ URI location = new URI(bundleInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
for (ConfigFileInfo configFileInfo :
conditional.getConfigurationFiles()) {
- URI location = new URI(configFileInfo.getLocation());
+ URI location = new URI(configFileInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].