public void setDependencies(List dependencies, Filter artifactFilter) {
this.dependencies = dependencies;
// collect list of artifacts
artifacts = new ArrayList();
for (Iterator iter = dependencies.iterator(); iter.hasNext();) {
IvyNode dependency = (IvyNode) iter.next();
if (!dependency.isCompletelyEvicted() && !dependency.hasProblem()) {
artifacts.addAll(Arrays.asList(dependency.getSelectedArtifacts(artifactFilter)));
}
// update the configurations reports with the dependencies
// these reports will be completed later with download information, if any
String[] dconfs = dependency.getRootModuleConfigurations();
for (int j = 0; j < dconfs.length; j++) {
ConfigurationResolveReport configurationReport = getConfigurationReport(dconfs[j]);
if (configurationReport != null) {
configurationReport.addDependency(dependency);
}