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;
.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);
if (log.isDebugEnabled())
log.debug("Already available : " + nv);
}
-
}
+ /* DEPENDENCY INJECTION */
public void setOsgiDistribution(ArgeoOsgiDistribution osgiDistribution) {
this.osgiDistribution = osgiDistribution;
}
public void setOsgiFactory(OsgiFactory osgiFactory) {
this.osgiFactory = osgiFactory;
}
-
-}
+}
\ No newline at end of file