import org.eclipse.osgi.framework.console.CommandProvider;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* This java class provides the osgi console with the commands for running the unit test scripts for the API3
*
*/
public class API3UnitTest implements CommandProvider {
+ private static Logger log = LoggerFactory
+ .getLogger(API3UnitTest.class);
+
private static final String python = "/usr/bin/python";
/**
printStream(process.getErrorStream());
} catch (Exception e) {
System.out.println("Exception!");
- e.printStackTrace();
+ logger.error("",e);
}
}
printStream(process.getErrorStream());
} catch (Exception e) {
System.out.println("Exception!");
- e.printStackTrace();
+ logger.error("",e);
}
}