X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.repo%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Frepo%2Fmaven%2FGenerateBinaries.java;h=cd5283db4e1b568ff61d4bd1cff6a753df814cf4;hb=3ee2fdf1cb2047b3c4eda153ce1e9ac2b24f6f9c;hp=ed22006ad18178ac7d5efc72778ff0521d1d77b0;hpb=5f40d8d483bdd509881bf09fa9eedf259146be65;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/GenerateBinaries.java b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/GenerateBinaries.java index ed22006ad..cd5283db4 100644 --- a/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/GenerateBinaries.java +++ b/runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/maven/GenerateBinaries.java @@ -69,7 +69,7 @@ public class GenerateBinaries implements Runnable, SlcNames { new ArtifactIdComparator()); private Set sources = new TreeSet( new ArtifactIdComparator()); - + // local cache private ArtifactIndexer artifactIndexer = new ArtifactIndexer(); private Node allArtifactsHighestVersion; @@ -94,13 +94,14 @@ public class GenerateBinaries implements Runnable, SlcNames { * Generates binaries-, sources- and sdk-version.pom artifacts for the given * version (or the highest of all children version if none is precised). * - * By default, it includes each latest version of all artifact of this group. + * By default, it includes each latest version of all artifact of this + * group. * - * The 3 generated artifacts are then marked as modular distributions and indexed. + * The 3 generated artifacts are then marked as modular distributions and + * indexed. */ public static void processGroupNode(Node groupNode, String version, - ArgeoMonitor monitor) - throws RepositoryException { + ArgeoMonitor monitor) throws RepositoryException { // TODO set artifactsBase based on group node GenerateBinaries gb = new GenerateBinaries(); String groupId = groupNode.getProperty(SlcNames.SLC_GROUP_BASE_ID) @@ -178,11 +179,11 @@ public class GenerateBinaries implements Runnable, SlcNames { } } } -// if (log.isDebugEnabled()) { -// int bundleCount = symbolicNamesToNodes.size(); -// log.debug("" + bundleCount + " bundles have been indexed for " -// + groupId); -// } + // if (log.isDebugEnabled()) { + // int bundleCount = symbolicNamesToNodes.size(); + // log.debug("" + bundleCount + " bundles have been indexed for " + // + groupId); + // } } /** Does the real job : writes JCR META-DATA and generates binaries */ @@ -205,18 +206,17 @@ public class GenerateBinaries implements Runnable, SlcNames { throw new SlcException("Group version " + version + " is empty."); -// int bundleCount = symbolicNamesToNodes.size(); -// -// int count = 1; -// for (Node bundleNode : symbolicNamesToNodes.values()) { -// if (log.isDebugEnabled()) -// log.debug("Processing " + bundleNode.getName() + " ( " + count -// + "/" + bundleCount + " )"); -// -// // processBundleArtifact(bundleNode); -// // bundleNode.getSession().save(); -// count++; -// } + // int bundleCount = symbolicNamesToNodes.size(); + // int count = 1; + // for (Node bundleNode : symbolicNamesToNodes.values()) { + // if (log.isDebugEnabled()) + // log.debug("Processing " + bundleNode.getName() + " ( " + count + // + "/" + bundleCount + " )"); + // + // // processBundleArtifact(bundleNode); + // // bundleNode.getSession().save(); + // count++; + // } // indexes Set indexes = new TreeSet(