PengZheng commented on code in PR #476:
URL: https://github.com/apache/celix/pull/476#discussion_r1118310395


##########
libs/framework/src/celix_launcher.c:
##########
@@ -256,11 +261,47 @@ static void printEmbeddedBundles() {
     celix_arrayList_destroy(embeddedBundles);
 }
 
-static void combine_properties(celix_properties_t *original, const 
celix_properties_t *append) {
+static int celixLauncher_createBundleCache(celix_properties_t* 
embeddedProperties, const char* configFile) {
+    celix_framework_t* fw = NULL;
+    celix_properties_t* config = celixLauncher_createConfig(configFile, 
embeddedProperties);
+    celix_status_t status = framework_create(&fw, config);
+    if (status != CELIX_SUCCESS) {
+        fprintf(stderr, "Failed to create framework for bundle cache 
creation\n");
+        return 1;
+    }
+    status = celix_framework_utils_createBundleArchivesCache(fw);
+    status = CELIX_DO_IF(status, framework_destroy(fw));
+    //status = CELIX_DO_IF(status, framework_destroy(fw));

Review Comment:
   It should be removed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to