X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.repo%2Fsrc%2Forg%2Fargeo%2Fslc%2Frepo%2FModularDistributionFactory.java;h=19627d8ffdc7db66939a8498d0d7d159716c6092;hb=82ce036ceb9e151dfc8ba46b6568929a22245099;hp=9c13ce048260348baf1fd8fb020eb1489e7c343d;hpb=0c444984b6249f5bce331a9b1c02ad55369dacfc;p=gpl%2Fargeo-slc.git
diff --git a/org.argeo.slc.repo/src/org/argeo/slc/repo/ModularDistributionFactory.java b/org.argeo.slc.repo/src/org/argeo/slc/repo/ModularDistributionFactory.java
index 9c13ce048..19627d8ff 100644
--- a/org.argeo.slc.repo/src/org/argeo/slc/repo/ModularDistributionFactory.java
+++ b/org.argeo.slc.repo/src/org/argeo/slc/repo/ModularDistributionFactory.java
@@ -22,7 +22,7 @@ import javax.jcr.Session;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.argeo.jcr.JcrUtils;
-import org.argeo.slc.CategorizedNameVersion;
+import org.argeo.slc.CategoryNameVersion;
import org.argeo.slc.NameVersion;
import org.argeo.slc.SlcException;
import org.eclipse.aether.artifact.Artifact;
@@ -413,9 +413,9 @@ public class ModularDistributionFactory implements Runnable {
b.append("\n");
for (Iterator extends NameVersion> it = osgiDistribution.nameVersions(); it.hasNext();) {
NameVersion nameVersion = it.next();
- if (!(nameVersion instanceof CategorizedNameVersion))
+ if (!(nameVersion instanceof CategoryNameVersion))
throw new SlcException("Unsupported type " + nameVersion.getClass());
- CategorizedNameVersion nv = (CategorizedNameVersion) nameVersion;
+ CategoryNameVersion nv = (CategoryNameVersion) nameVersion;
b.append(getDependencySnippet(nv, false));
}
b.append("\n");
@@ -425,7 +425,7 @@ public class ModularDistributionFactory implements Runnable {
b.append("\n");
for (Iterator extends NameVersion> it = osgiDistribution.nameVersions(); it.hasNext();)
- b.append(getDependencySnippet((CategorizedNameVersion) it.next(), true));
+ b.append(getDependencySnippet((CategoryNameVersion) it.next(), true));
b.append("\n");
b.append("\n");
@@ -433,7 +433,7 @@ public class ModularDistributionFactory implements Runnable {
return b.toString().getBytes();
}
- private String getDependencySnippet(CategorizedNameVersion cnv, boolean includeVersion) { // , String type, String
+ private String getDependencySnippet(CategoryNameVersion cnv, boolean includeVersion) { // , String type, String
// scope
StringBuilder b = new StringBuilder();
b.append("\n");
@@ -469,9 +469,9 @@ public class ModularDistributionFactory implements Runnable {
}
private String getCsvLine(NameVersion nameVersion) throws RepositoryException {
- if (!(nameVersion instanceof CategorizedNameVersion))
+ if (!(nameVersion instanceof CategoryNameVersion))
throw new SlcException("Unsupported type " + nameVersion.getClass());
- CategorizedNameVersion cnv = (CategorizedNameVersion) nameVersion;
+ CategoryNameVersion cnv = (CategoryNameVersion) nameVersion;
StringBuilder builder = new StringBuilder();
builder.append(cnv.getName());