karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgoody...@apache.org
Subject [46/50] git commit: [KARAF-2898] Add support of artifact type in feature validator
Date Sat, 26 Jul 2014 01:55:27 GMT
[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/6558f693
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/6558f693
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/6558f693

Branch: refs/heads/karaf-2.3.x
Commit: 6558f693c1b4bbed606320ef2cfcb58f88558289
Parents: 2c4442c
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Fri Jul 25 11:57:44 2014 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Fri Jul 25 11:57:44 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/karaf/blob/6558f693/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateFeaturesMojo.java
----------------------------------------------------------------------
diff --git a/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateFeaturesMojo.java
b/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateFeaturesMojo.java
index 1e8b78a..f785584 100644
--- a/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateFeaturesMojo.java
+++ b/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/ValidateFeaturesMojo.java
@@ -608,6 +608,8 @@ public class ValidateFeaturesMojo 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