You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2013/07/03 15:48:18 UTC
svn commit: r1499400 -
/karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
Author: jbonofre
Date: Wed Jul 3 13:48:18 2013
New Revision: 1499400
URL: http://svn.apache.org/r1499400
Log:
[KARAF-2357] Add ignoreDependencyFlag parameter to the create-kar goal
Modified:
karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
Modified: karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
URL: http://svn.apache.org/viewvc/karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java?rev=1499400&r1=1499399&r2=1499400&view=diff
==============================================================================
--- karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java (original)
+++ karaf/trunk/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java Wed Jul 3 13:48:18 2013
@@ -90,6 +90,13 @@ public class CreateKarMojo extends MojoS
private String finalName = null;
/**
+ * Ignore the dependency flag on the bundles in the features XML
+ *
+ * @parameter default-value="false"
+ */
+ private boolean ignoreDependencyFlag;
+
+ /**
* Classifier to add to the artifact generated. If given, the artifact will be attached.
* If it's not given, it will merely be written to the output directory according to the finalName.
*
@@ -161,7 +168,7 @@ public class CreateKarMojo extends MojoS
Features features = JaxbUtil.unmarshal(in, false);
for (Feature feature : features.getFeature()) {
for (BundleInfo bundle : feature.getBundles()) {
- if (!bundle.isDependency()) {
+ if (ignoreDependencyFlag || (!ignoreDependencyFlag && !bundle.isDependency())) {
resources.add(resourceToArtifact(bundle.getLocation(), false));
}
}