Examples of EvictionData


Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

        return eviction.isEvicted(rootModuleConf);
    }

    public void markEvicted(String rootModuleConf, IvyNode node, ConflictManager conflictManager,
            Collection resolved) {
        EvictionData evictionData = new EvictionData(rootModuleConf, node, conflictManager,
                resolved);
        markEvicted(evictionData);
    }
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

            }

            String rootModuleConf =
                parent.getData().getReport().getConfiguration();
            evicted.markEvicted(
                new EvictionData(rootModuleConf, parent, this, Collections.singleton(selected),
                    "with blacklisting of " + blacklisted));

            if (settings.debugConflictResolution()) {
                Message.debug("evicting " + evicted + " by "
                    + evicted.getEvictedData(rootModuleConf));
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

                }
            }
        }
        if (node.isEvicted()) {
            // update selected nodes with confs asked in evicted one
            EvictionData ed = node.getEvictedData();
            if (ed.getSelected() != null) {
                for (Iterator iter = ed.getSelected().iterator(); iter.hasNext();) {
                    IvyNode selected = (IvyNode) iter.next();
                    if (!selected.isLoaded()) {
                        // the node is not yet loaded, we can simply update its set of
                        // configurations to fetch
                        selected.updateConfsToFetch(Collections.singleton(conf));
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

            // to check higher levels, for which conflict resolution might have been impossible
            // before
            if (resolveConflict(node, ancestor.getParent(), conf, toevict)) {
                // now that conflict resolution is ok in ancestors
                // we just have to check if the node wasn't previously evicted in root ancestor
                EvictionData evictionData = node.getEvictionDataInRoot(node.getRootModuleConf(),
                    ancestor);
                if (evictionData != null) {
                    // node has been previously evicted in an ancestor: we mark it as evicted
                    if (settings.debugConflictResolution()) {
                        Message.debug(node + " was previously evicted in root module conf "
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

                            .append(" artresolver=\"").append(
                                dep.getModuleRevision().getArtifactResolver().getName()).append(
                                "\"");
                }
                if (dep.isEvicted(report.getConfiguration())) {
                    EvictionData ed = dep.getEvictedData(report.getConfiguration());
                    if (ed.getConflictManager() != null) {
                        details.append(" evicted=\"").append(ed.getConflictManager()).append("\"");
                    } else {
                        details.append(" evicted=\"transitive\"");
                    }
                }
                if (dep.hasProblem()) {
                    details.append(" error=\"").append(dep.getProblem().getMessage()).append("\"");
                }
                if (md != null && md.getHomePage() != null) {
                    details.append(" homepage=\"").append(md.getHomePage()).append("\"");
                }
                extraAttributes = md != null ? md.getExtraAttributes() : dep.getResolvedId()
                        .getExtraAttributes();
                for (Iterator iterator = extraAttributes.keySet().iterator(); iterator.hasNext();) {
                    String attName = (String) iterator.next();
                    details.append(" extra-").append(attName).append("=\"").append(
                        extraAttributes.get(attName)).append("\"");
                }
                String defaultValue = dep.getDescriptor() != null ? " default=\""
                        + dep.getDescriptor().isDefault() + "\"" : "";
                int position = dependencies.indexOf(dep.getResolvedId());
                out.println("\t\t\t<revision name=\""
                        + dep.getResolvedId().getRevision()
                        + "\""
                        + (dep.getResolvedId().getBranch() == null ? "" : " branch=\""
                                + dep.getResolvedId().getBranch() + "\"") + details
                        + " downloaded=\"" + dep.isDownloaded() + "\"" + " searched=\""
                        + dep.isSearched() + "\"" + defaultValue + " conf=\""
                        + toString(dep.getConfigurations(report.getConfiguration())) + "\""
                        + " position=\"" + position + "\">");
                if (md != null) {
                    License[] licenses = md.getLicenses();
                    for (int i = 0; i < licenses.length; i++) {
                        String lurl;
                        if (licenses[i].getUrl() != null) {
                            lurl = " url=\"" + licenses[i].getUrl() + "\"";
                        } else {
                            lurl = "";
                        }
                        out.println("\t\t\t\t<license name=\"" + licenses[i].getName() + "\""
                                + lurl + "/>");
                    }
                }
                if (dep.isEvicted(report.getConfiguration())) {
                    EvictionData ed = dep.getEvictedData(report.getConfiguration());
                    Collection selected = ed.getSelected();
                    if (selected != null) {
                        for (Iterator it3 = selected.iterator(); it3.hasNext();) {
                            IvyNode sel = (IvyNode) it3.next();
                            out.println("\t\t\t\t<evicted-by rev=\""
                                    + sel.getResolvedId().getRevision() + "\"/>");
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

                    Message.info("\t" + evicted[i] + " by " + allEvictingNodes + " in "
                            + Arrays.asList(evicted[i].getEvictedConfs()));
                }
                String[] confs = evicted[i].getEvictedConfs();
                for (int j = 0; j < confs.length; j++) {
                    EvictionData evictedData = evicted[i].getEvictedData(confs[j]);
                    Message.verbose("\t  in " + evictedData.getParent() + " with "
                            + evictedData.getConflictManager());
                }
            }
        }

        char[] sep = new char[69];
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

                }
            }
        }
        if (node.isEvicted()) {
            // update selected nodes with confs asked in evicted one
            EvictionData ed = node.getEvictedData();
            if (ed.getSelected() != null) {
                for (Iterator iter = ed.getSelected().iterator(); iter.hasNext();) {
                    IvyNode selected = (IvyNode) iter.next();
                    if (!selected.isLoaded()) {
                        // the node is not yet loaded, we can simply update its set of
                        // configurations to fetch
                        selected.updateConfsToFetch(Collections.singleton(conf));
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

            // to check higher levels, for which conflict resolution might have been impossible
            // before
            if (resolveConflict(node, ancestor.getParent(), toevict)) {
                // now that conflict resolution is ok in ancestors
                // we just have to check if the node wasn't previously evicted in root ancestor
                EvictionData evictionData = node.getEvictionDataInRoot(node.getRootModuleConf(),
                    ancestor);
                if (evictionData != null) {
                    // node has been previously evicted in an ancestor: we mark it as evicted
                    if (settings.debugConflictResolution()) {
                        Message.debug(node + " was previously evicted in root module conf "
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

                }
            }
        }
        if (node.isEvicted()) {
            // update selected nodes with confs asked in evicted one
            EvictionData ed = node.getEvictedData();
            if (ed.getSelected() != null) {
                for (Iterator iter = ed.getSelected().iterator(); iter.hasNext();) {
                    IvyNode selected = (IvyNode) iter.next();
                    if (!selected.isLoaded()) {
                        // the node is not yet loaded, we can simply update its set of
                        // configurations to fetch
                        selected.updateConfsToFetch(Collections.singleton(conf));
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeEviction.EvictionData

            // to check higher levels, for which conflict resolution might have been impossible
            // before
            if (resolveConflict(node, ancestor.getParent(), conf, toevict)) {
                // now that conflict resolution is ok in ancestors
                // we just have to check if the node wasn't previously evicted in root ancestor
                EvictionData evictionData = node.getEvictionDataInRoot(node.getRootModuleConf(),
                    ancestor);
                if (evictionData != null) {
                    // node has been previously evicted in an ancestor: we mark it as evicted
                    if (debugConflictResolution) {
                        Message.debug(node + " was previously evicted in root module conf "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.