summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;