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 2015/11/27 10:33:01 UTC

[1/3] karaf git commit: [KARAF-2963] osgi:headers - Add option to not display uses:= in exported headers as its too verbose and useless information

Repository: karaf
Updated Branches:
  refs/heads/master c059683c6 -> dbde45bb9


[KARAF-2963] osgi:headers - Add option to not display uses:= in exported headers as its too verbose and useless information


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

Branch: refs/heads/master
Commit: aa4ebdedfd5e57df57fa6e12833053059369e007
Parents: 54b4615
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Nov 25 17:38:42 2015 +0100
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Nov 25 17:38:42 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/karaf/bundle/command/Headers.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/aa4ebded/bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java
----------------------------------------------------------------------
diff --git a/bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java b/bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java
index 7e23286..71ea0bb 100644
--- a/bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java
+++ b/bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java
@@ -59,6 +59,9 @@ public class Headers extends BundlesCommand {
 
     @Option(name = "--indent", description = "Indentation method")
     int indent = -1;
+    
+    @Option(name = "--no-uses", description = "Print or not the Export-Package uses section")
+    boolean noUses = false;
 
     @Reference(optional = true)
     Terminal terminal;
@@ -266,6 +269,9 @@ public class Headers extends BundlesCommand {
         });
         builder.append(name);
         for (int i = 0; directives != null && i < directives.length; i++) {
+            if (noUses && directives[i].getName().equalsIgnoreCase("uses")) {
+                continue;
+            }
             builder.append(";");
             if (indent > 1) {
                 builder.append("\n\t\t");


[3/3] karaf git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/karaf

Posted by jb...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/karaf


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

Branch: refs/heads/master
Commit: dbde45bb9ed73eb292b082baec8b981294cba3d6
Parents: 5014887 c059683
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Fri Nov 27 10:32:52 2015 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Fri Nov 27 10:32:52 2015 +0100

----------------------------------------------------------------------
 README | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------



[2/3] karaf git commit: Merge branch 'KARAF-2963' of https://github.com/oscerd/karaf

Posted by jb...@apache.org.
Merge branch 'KARAF-2963' of https://github.com/oscerd/karaf


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

Branch: refs/heads/master
Commit: 50148876f7fd965ae8ec43df39fc936b3f4384fb
Parents: 6d402cd aa4ebde
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Fri Nov 27 10:20:40 2015 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Fri Nov 27 10:20:40 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/karaf/bundle/command/Headers.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------