summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/dosgi-calculator/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-02-04 15:02:55 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-02-04 15:02:55 +0000
commit01b24aa2e158fe21b2bb6bbf2d28bbbb5aa10e8f (patch)
tree1f845562653386d209790f3f21046cb24776bc17 /sca-java-2.x/trunk/samples/dosgi-calculator/src
parentbb1524ce03a5e78d014e8b78a8b043ac809cf124 (diff)
Add some extra debug code (mostly commented out)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@906514 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/dosgi-calculator/src')
-rw-r--r--sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java b/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
index 4dd713ecef..2f37da0707 100644
--- a/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
+++ b/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
@@ -56,12 +56,18 @@ public class CalculatorOSGiNodeTestCase {
try {
rmiServer = new OperationsRMIServer();
rmiServer.start();
-
+
host = new EquinoxHost();
context = host.start();
for (Bundle b : context.getBundles()) {
System.out.println(b);
+ // debug to print out exported packages
+ // handy if you want to find aplit packages
+ //Object exports = b.getHeaders().get(Constants.EXPORT_PACKAGE);
+ //if (exports != null){
+ // System.out.println(exports.toString());
+ //}
if (b.getSymbolicName().equals("org.eclipse.equinox.ds") || b.getSymbolicName()
.startsWith("org.apache.tuscany.sca.")) {
try {
@@ -73,6 +79,8 @@ public class CalculatorOSGiNodeTestCase {
e.printStackTrace();
}
System.out.println(bundleStatus(b, false));
+ } else {
+ System.out.println(bundleStatus(b, false));
}
if ("calculator.dosgi".equals(b.getSymbolicName())) {
calculatorBundle = b;