XmlReportParser parser = new XmlReportParser();  String[] confs = splitConfs(_conf); Collection all = new LinkedHashSet(); for (int i = 0; i < confs.length; i++) { Artifact[] artifacts = parser.getArtifacts(new ModuleId(_organisation, _module), confs[i], _cache); all.addAll(Arrays.asList(artifacts)); }
Collection artifacts = getAllArtifacts();
    protected List getPaths() throws BuildException, ParseException, IOException {        Ivy ivy = getIvyInstance();        XmlReportParser parser = new XmlReportParser();                String[] confs = splitConfs(_conf);        Collection all = new LinkedHashSet();        for (int i = 0; i < confs.length; i++) {            Artifact[] artifacts = parser.getArtifacts(new ModuleId(_organisation, _module), confs[i], _cache);            all.addAll(Arrays.asList(artifacts));        }        List paths = new ArrayList();        for (Iterator iter = all.iterator(); iter.hasNext();) {            Artifact artifact = (Artifact)iter.next();            if (_artifactFilter.accept(artifact)) {            	addPath(paths, artifact, ivy);            }        }                return paths;    }