Skip to content

Commit

Permalink
Fixed problem where not all the artifacts of a dependency would be co…
Browse files Browse the repository at this point in the history
…pied when `--with-dependencies` was specified
  • Loading branch information
quintesse committed Sep 22, 2014
1 parent e14ba08 commit 4afd15b
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -146,6 +146,7 @@ private void copyModuleInternal(ArtifactContext context) throws Exception {
}
Collection<ModuleVersionDetails> versions = getModuleVersions(srcRepoman, context.getName(), context.getVersion(), ModuleQuery.Type.ALL, null, null);
if (!versions.isEmpty()) {
ArtifactContext depContext = context.copy();
ModuleVersionDetails ver = versions.iterator().next();
boolean copyModule = true;
if (feedback != null) {
Expand Down Expand Up @@ -174,10 +175,10 @@ private void copyModuleInternal(ArtifactContext context) throws Exception {
maxCount += countNonJdkDeps(ver.getDependencies());
for (ModuleDependencyInfo dep : ver.getDependencies()) {
ModuleSpec depModule = new ModuleSpec(dep.getName(), dep.getVersion());
ArtifactContext depContext = context.copy();
depContext.setName(depModule.getName());
depContext.setVersion(depModule.getVersion());
copyModuleInternal(depContext);
ArtifactContext copyContext = depContext.copy();
copyContext.setName(depModule.getName());
copyContext.setVersion(depModule.getVersion());
copyModuleInternal(copyContext);
}
}
} else {
Expand Down

0 comments on commit 4afd15b

Please sign in to comment.