Package org.apache.ivy.plugins.report

Examples of org.apache.ivy.plugins.report.XmlReportParser


                }
            }
        } else {
            Message.debug("using stored report to get artifacts list");

            XmlReportParser parser = new XmlReportParser();
            ResolutionCacheManager cacheMgr = getIvyInstance().getCacheManager(getCache());
            String resolvedId = getResolveId();
            if (resolvedId == null) {
                resolvedId = ResolveOptions.getDefaultResolveId(getResolvedModuleId());
            }
            for (int i = 0; i < confs.length; i++) {
                File reportFile = cacheMgr.getConfigurationResolveReportInCache(resolvedId,
                    confs[i]);
                parser.parse(reportFile);

                Artifact[] artifacts = parser.getArtifacts();
                all.addAll(Arrays.asList(artifacts));
            }
        }
        return all;
    }
View Full Code Here


            File report = ivy.getResolutionCacheManager().getConfigurationResolveReportInCache(
                IvyClasspathUtil.buildResolveId(useExtendedResolveId, md), confs[i]);
            if (report.exists()) {
                // found a report, try to parse it.
                try {
                    XmlReportParser parser = new XmlReportParser();
                    parser.parse(report);
                    result.addArtifactReports(parser.getArtifactReports());
                    findAllArtifactOnRefresh(ivy, parser, result);
                } catch (ParseException e) {
                    Message.info("\n\nIVYDE: Error while parsing the report " + report
                            + ". Falling back by doing a resolve again.");
                    // it fails, so let's try resolving for all configuration
View Full Code Here

TOP

Related Classes of org.apache.ivy.plugins.report.XmlReportParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.