You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/03/27 07:11:01 UTC
[sling-org-apache-sling-feature-io] branch master updated:
SLING-9263 : Allow feature ids and urls in manifest header
This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-io.git
The following commit(s) were added to refs/heads/master by this push:
new c26bef3 SLING-9263 : Allow feature ids and urls in manifest header
c26bef3 is described below
commit c26bef38906ff80a5bbb6a6cfd1865f704f334bd
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Mar 27 08:10:39 2020 +0100
SLING-9263 : Allow feature ids and urls in manifest header
---
pom.xml | 2 +-
src/main/java/org/apache/sling/feature/io/archive/ArchiveReader.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 21d2557..65ad314 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,7 +129,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.feature</artifactId>
- <version>1.1.4</version>
+ <version>1.1.6</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/feature/io/archive/ArchiveReader.java b/src/main/java/org/apache/sling/feature/io/archive/ArchiveReader.java
index af7b404..80c6e35 100644
--- a/src/main/java/org/apache/sling/feature/io/archive/ArchiveReader.java
+++ b/src/main/java/org/apache/sling/feature/io/archive/ArchiveReader.java
@@ -78,7 +78,7 @@ public class ArchiveReader {
// validate manifest and get feature ids
final String[] featureIds = checkHeaderAndExtractContents(jis.getManifest());
final List<String> featurePaths = Arrays.asList(featureIds).stream()
- .map(id -> ArtifactId.fromMvnId(id).toMvnPath()).collect(Collectors.toList());
+ .map(id -> ArtifactId.parse(id).toMvnPath()).collect(Collectors.toList());
// read contents