Commit 8f434b3a authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

updating dir search in service registry


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 120f374a
......@@ -58,9 +58,8 @@ void Initialize(int arc, char** arv) {
XACCLogger::instance()->info("Initializing the ServiceRegistry");
serviceRegistry->initialize();
} catch (std::exception& e) {
XACCLogger::instance()->error(
std::string(e.what())
+ " - Could not initialize XACC Framework");
XACCLogger::instance()->error("Failure initializing XACC Plugin Registry - " +
std::string(e.what()));
}
// Parse any user-supplied command line options
......
......@@ -12,7 +12,7 @@ void ServiceRegistry::initialize() {
XACCLogger::instance()->info("Running Framework.Init.");
framework.Init();
XACCLogger::instance()->info(" Getting the Framework Bundle Context.");
XACCLogger::instance()->info("Getting the Framework Bundle Context.");
context = framework.GetBundleContext();
if (!context) {
XACCLogger::instance()->error(
......@@ -23,6 +23,11 @@ void ServiceRegistry::initialize() {
XACCLogger::instance()->info("XACC Lib Directory: " + xaccLibDir);
for (auto &entry : boost::filesystem::directory_iterator(xaccLibDir)) {
XACCLogger::instance()->info("TEST: " + entry.path().filename().string());
if (entry.path().filename().string() == "lib") {
for (auto& e : boost::filesystem::directory_iterator(entry.path())) {
XACCLogger::instance()->info("SUB LIB: " + e.path().string());
}
}
// We want the gate and aqc bundles that come with XACC
if (boost::contains(entry.path().filename().string(),
"libxacc-quantum")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment