createFirstLevelDependenciesModuleRevisionIds(configuration.getAllDependencies(ModuleDependency.class));
conf = configuration.getName();
}
public ConfigurationDetails addConfiguration(IvyNode ivyNode, String configuration) {
ModuleRevisionId actualId = ivyNode.getResolvedId();
Set<String> configurations = getConfigurationHierarchy(ivyNode, configuration);
DefaultResolvedDependency resolvedDependency;
if (actualId.getAttribute(DependencyDescriptorFactory.PROJECT_PATH_KEY) != null) {
resolvedDependency = new DefaultResolvedDependency(
actualId.getAttribute(DependencyDescriptorFactory.PROJECT_PATH_KEY),
actualId.getOrganisation(), actualId.getName(), actualId.getRevision(),
configuration, getArtifacts(ivyNode));
} else {
resolvedDependency = new DefaultResolvedDependency(
actualId.getOrganisation(), actualId.getName(), actualId.getRevision(),
configuration, getArtifacts(ivyNode));
}
for (ResolvedArtifact resolvedArtifact : resolvedDependency.getModuleArtifacts()) {
((DefaultResolvedArtifact) resolvedArtifact).setResolvedDependency(resolvedDependency);
}