You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/02/04 16:02:55 UTC
svn commit: r906514 -
/tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
Author: slaws
Date: Thu Feb 4 15:02:55 2010
New Revision: 906514
URL: http://svn.apache.org/viewvc?rev=906514&view=rev
Log:
Add some extra debug code (mostly commented out)
Modified:
tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
Modified: tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java?rev=906514&r1=906513&r2=906514&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/samples/dosgi-calculator/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java Thu Feb 4 15:02:55 2010
@@ -56,12 +56,18 @@
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 @@
e.printStackTrace();
}
System.out.println(bundleStatus(b, false));
+ } else {
+ System.out.println(bundleStatus(b, false));
}
if ("calculator.dosgi".equals(b.getSymbolicName())) {
calculatorBundle = b;