X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.repo%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Frepo%2Fosgi%2FProcessDistribution.java;h=544b1c634aa38e2fd6539be2850395ee580fcbd3;hb=d7c9180e5ad639b141ecc51f36e7fd65f19403f9;hp=bca8356c92ba70b1f2578d6233bd5809bc685980;hpb=7dc51321ef0ea5d2853d2c9b3a30b9f90e0fffae;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java index bca8356c9..544b1c634 100644 --- a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java +++ b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/osgi/ProcessDistribution.java @@ -12,6 +12,7 @@ import org.argeo.slc.CategorizedNameVersion; import org.argeo.slc.NameVersion; import org.argeo.slc.SlcException; import org.argeo.slc.repo.ArgeoOsgiDistribution; +import org.argeo.slc.repo.ModularDistributionFactory; import org.argeo.slc.repo.OsgiFactory; import org.argeo.slc.repo.maven.MavenConventionsUtils; import org.sonatype.aether.artifact.Artifact; @@ -33,8 +34,17 @@ public class ProcessDistribution implements Runnable { .nameVersions(); it.hasNext();) processNameVersion(javaSession, it.next()); - // TODO generate distribution indexes (pom.xml, P2, OBR) + ModularDistributionFactory mdf = new ModularDistributionFactory( + javaSession, osgiDistribution); + mdf.run(); + + // TODO why is the created distribution not automatically indexed? // osgiFactory.indexNode(node); + // javaSession.save(); + + // Node artifact = createDistributionArtifact(javaSession, + // osgiDistribution); + } catch (RepositoryException e) { throw new SlcException("Cannot process distribution " + osgiDistribution, e); @@ -65,9 +75,9 @@ public class ProcessDistribution implements Runnable { if (log.isDebugEnabled()) log.debug("Already available : " + nv); } - } + /* DEPENDENCY INJECTION */ public void setOsgiDistribution(ArgeoOsgiDistribution osgiDistribution) { this.osgiDistribution = osgiDistribution; } @@ -75,5 +85,4 @@ public class ProcessDistribution implements Runnable { public void setOsgiFactory(OsgiFactory osgiFactory) { this.osgiFactory = osgiFactory; } - -} +} \ No newline at end of file