]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/OsgiRuntime.java
Provisioning
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.osgi / src / main / java / org / argeo / slc / osgi / OsgiRuntime.java
index bd6c63034a8ca28395b4eb2d7c0ef434149d11e4..e433d7e29e18a14597460a1b483959c659c023a5 100644 (file)
@@ -6,7 +6,7 @@ import java.util.UUID;
 
 import org.argeo.slc.UnsupportedException;
 import org.argeo.slc.build.Distribution;
-import org.argeo.slc.core.deploy.ResourceDistribution;
+import org.argeo.slc.core.build.VersionedResourceDistribution;
 import org.argeo.slc.deploy.DeploymentData;
 import org.argeo.slc.deploy.ModularDeployedSystem;
 import org.argeo.slc.deploy.TargetData;
@@ -32,7 +32,10 @@ public class OsgiRuntime implements ModularDeployedSystem<OsgiBundle>,
                        String location = bundle.getLocation();
                        if (location != null) {
                                Resource resource = resourceLoader.getResource(location);
-                               osgiBundle.setDistribution(new ResourceDistribution(resource));
+                               osgiBundle
+                                               .setDistribution(new VersionedResourceDistribution(
+                                                               osgiBundle.getName(), osgiBundle.getVersion(),
+                                                               resource));
                        }
                }
                return modules;