karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject git commit: [KARAF-2898] Add support of artifact type in feature validator
Date Fri, 25 Jul 2014 12:24:20 GMT
Repository: karaf
Updated Branches:
  refs/heads/master a48472e4b -> 3f91b16f0


[KARAF-2898] Add support of artifact type in feature validator


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/3f91b16f
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/3f91b16f
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/3f91b16f

Branch: refs/heads/master
Commit: 3f91b16f0d807dad08dc0c9315b70f9497ca8afc
Parents: a48472e
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Fri Jul 25 14:11:54 2014 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Fri Jul 25 14:16:00 2014 +0200

----------------------------------------------------------------------
 .../org/apache/karaf/tooling/features/ValidateDescriptorMojo.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/3f91b16f/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateDescriptorMojo.java
----------------------------------------------------------------------
diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateDescriptorMojo.java
b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateDescriptorMojo.java
index 8263454..0f27178 100644
--- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateDescriptorMojo.java
+++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateDescriptorMojo.java
@@ -600,6 +600,8 @@ public class ValidateDescriptorMojo extends MojoSupport {
         switch (elements.length) {
             case 5:
                 return factory.createArtifactWithClassifier(elements[0], elements[1], elements[2],
elements[3], elements[4]);
+            case 4:
+                return factory.createArtifact(elements[0], elements[1], elements[2], Artifact.SCOPE_PROVIDED,
elements[3]);
             case 3:
                 return factory.createArtifact(elements[0], elements[1], elements[2], Artifact.SCOPE_PROVIDED,
"jar");
             default:


Mime
View raw message