]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java
Improve 'do not modify' mode
[gpl/argeo-slc.git] / runtime / org.argeo.slc.repo / src / main / java / org / argeo / slc / repo / osgi / ProcessDistribution.java
index d852fb623b249fe9a41312797c484b5db4a139b8..80401d73fd06c57927c05e950feb8cb59a627d5f 100644 (file)
@@ -37,9 +37,11 @@ public class ProcessDistribution implements Runnable {
                        ModularDistributionFactory mdf = new ModularDistributionFactory(
                                        javaSession, osgiDistribution);
                        mdf.run();
-                       // javaSession.save();
 
+                       // TODO why is the created distribution not automatically indexed?
                        // osgiFactory.indexNode(node);
+                       // javaSession.save();
+
                        // Node artifact = createDistributionArtifact(javaSession,
                        // osgiDistribution);
 
@@ -66,12 +68,14 @@ public class ProcessDistribution implements Runnable {
                                if (log.isDebugEnabled())
                                        log.debug("Run factory for   : " + nv + "...");
                                ((BndWrapper) nv).getFactory().run();
+                       } else if (nv instanceof Runnable) {
+                               ((Runnable) nv).run();
                        } else {
                                log.warn("Skip unsupported   : " + nv);
                        }
                } else {
-                       if (log.isDebugEnabled())
-                               log.debug("Already available : " + nv);
+                       if (log.isTraceEnabled())
+                               log.trace("Already available : " + nv);
                }
        }