ZipEntry zentry = null;
entries: while ((zentry = zin.getNextEntry()) != null) {
String name = zentry.getName();
- // log.debug(name);
+ if (log.isTraceEnabled())
+ log.trace("Zip entry " + name);
for (String exclude : excludes)
if (pathMatcher.match(exclude, name))
continue entries;
if (pathMatcher.match(include, name)) {
String groupId = includes.get(include);
JarInputStream jis = new JarInputStream(zin);
+ if (jis.getManifest() == null) {
+ log.warn("No MANIFEST in entry " + name
+ + ", skipping...");
+ continue entries;
+ }
NameVersion nv = RepoUtils.readNameVersion(jis
.getManifest());
if (nv != null) {
groupId, nv.getName(), nv.getVersion(),
this);
nvs.add(cnv);
+ // no need to process further includes
+ continue entries;
}
}
}
addArtifactToIndex(sources, groupId, artifact);
else
addArtifactToIndex(binaries, groupId, artifact);
+ // no need to process this entry further
+ continue entries;
}
}
}
in = new ByteArrayInputStream(binaryJarBytes);
NameVersion nameVersion = RepoUtils.readNameVersion(in);
if (nameVersion == null) {
+ log.warn("Cannot identify " + zentry.getName());
return null;
}
Artifact artifact = new DefaultArtifact(groupId,
.getValue(BUNDLE_SYMBOLICNAME);
if (sourceSymbolicName != null
&& !sourceSymbolicName.equals(name))
- log.warn("The new symbolic name ("
+ log.info("The new symbolic name ("
+ name
+ ") is not consistant with the wrapped bundle symbolic name ("
+ sourceSymbolicName + ")");
import org.apache.commons.logging.LogFactory;
import org.argeo.jcr.JcrUtils;
import org.argeo.slc.CategorizedNameVersion;
+import org.argeo.slc.DefaultNameVersion;
import org.argeo.slc.NameVersion;
import org.argeo.slc.SlcException;
import org.argeo.slc.repo.ArgeoOsgiDistribution;
.nameVersions(); it.hasNext();)
processNameVersion(javaSession, it.next());
+ // Check sources
+ for (Iterator<? extends NameVersion> it = osgiDistribution
+ .nameVersions(); it.hasNext();) {
+ CategorizedNameVersion nv = (CategorizedNameVersion) it.next();
+ Artifact artifact = new DefaultArtifact(nv.getCategory(),
+ nv.getName() + ".source", "jar", nv.getVersion());
+ String path = MavenConventionsUtils.artifactPath("/", artifact);
+ if (!javaSession.itemExists(path))
+ log.warn("No source available for " + nv);
+ }
+
// explicitly create the corresponding modular distribution as we
// have here all necessary info.
ModularDistributionFactory mdf = new ModularDistributionFactory(