Examples of listTokenValues()


Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

    public String[] listTokenValues(String token, Map otherTokenValues) {
        Set entries = new LinkedHashSet();

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] values = resolver.listTokenValues(new String[] {token}, otherTokenValues);
            for (int i = 0; i < values.length; i++) {
                entries.add(values[i].get(token));
            }
        }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

    public OrganisationEntry[] listOrganisationEntries() {
        Set entries = new HashSet();

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] orgs = resolver.listTokenValues(new String[] {IvyPatternHelper.ORGANISATION_KEY},
                new HashMap());
            for (int i = 0; i < orgs.length; i++) {
                String org = (String) orgs[i].get(IvyPatternHelper.ORGANISATION_KEY);
                entries.add(new OrganisationEntry(resolver, org));
            }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

    public String[] listOrganisations() {
        Set entries = new HashSet();

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] orgs = resolver.listTokenValues(new String[] {IvyPatternHelper.ORGANISATION_KEY},
                new HashMap());
            for (int i = 0; i < orgs.length; i++) {
                entries.add(orgs[i].get(IvyPatternHelper.ORGANISATION_KEY));
            }
        }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        Map tokenValues = new HashMap();
        tokenValues.put(IvyPatternHelper.ORGANISATION_KEY, org.getOrganisation());

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] modules = resolver.listTokenValues(new String[] {IvyPatternHelper.MODULE_KEY},
                tokenValues);
            for (int i = 0; i < modules.length; i++) {
                String module = (String) modules[i].get(IvyPatternHelper.MODULE_KEY);
                entries.add(new ModuleEntry(org, module));
            }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        Map tokenValues = new HashMap();
        tokenValues.put(IvyPatternHelper.ORGANISATION_KEY, org);

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] modules = resolver.listTokenValues(new String[] {IvyPatternHelper.MODULE_KEY},
                tokenValues);
            for (int i = 0; i < modules.length; i++) {
                entries.add(modules[i].get(IvyPatternHelper.MODULE_KEY));
            }
        }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        tokenValues.put(IvyPatternHelper.ORGANISATION_KEY, module.getOrganisation());
        tokenValues.put(IvyPatternHelper.MODULE_KEY, module.getModule());

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] revisions = resolver.listTokenValues(
                new String[] {IvyPatternHelper.REVISION_KEY}, tokenValues);
            for (int i = 0; i < revisions.length; i++) {
                String revision = (String) revisions[i].get(IvyPatternHelper.REVISION_KEY);
                entries.add(new RevisionEntry(module, revision));
            }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        tokenValues.put(IvyPatternHelper.ORGANISATION_KEY, org);
        tokenValues.put(IvyPatternHelper.MODULE_KEY, module);

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] revisions = resolver.listTokenValues(
                new String[] {IvyPatternHelper.REVISION_KEY}, tokenValues);
            for (int i = 0; i < revisions.length; i++) {
                entries.add(revisions[i].get(IvyPatternHelper.REVISION_KEY));
            }
        }
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        String[] tokensToList = new String[] {IvyPatternHelper.ORGANISATION_KEY,
                IvyPatternHelper.MODULE_KEY};

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] moduleIdAsMap = resolver.listTokenValues(tokensToList, criteria);
            for (int i = 0; i < moduleIdAsMap.length; i++) {
                String org = (String) moduleIdAsMap[i].get(IvyPatternHelper.ORGANISATION_KEY);
                String name = (String) moduleIdAsMap[i].get(IvyPatternHelper.MODULE_KEY);
                ModuleId modId = ModuleId.newInstance(org, name);
                ret.add(NameSpaceHelper.transform(modId, resolver.getNamespace()
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

        String[] tokensToList = (String[]) moduleCrit.getAttributes().keySet()
                .toArray(new String[moduleCrit.getAttributes().size()]);

        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            Map[] moduleIdAsMap = resolver.listTokenValues(tokensToList, criteria);
            for (int i = 0; i < moduleIdAsMap.length; i++) {
                String org = (String) moduleIdAsMap[i].get(IvyPatternHelper.ORGANISATION_KEY);
                String name = (String) moduleIdAsMap[i].get(IvyPatternHelper.MODULE_KEY);
                String branch = (String) moduleIdAsMap[i].get(IvyPatternHelper.BRANCH_KEY);
                String rev = (String) moduleIdAsMap[i].get(IvyPatternHelper.REVISION_KEY);
View Full Code Here

Examples of org.apache.ivy.plugins.resolver.DependencyResolver.listTokenValues()

     */
    public String[] listTokenValues(String token, Map otherTokenValues) {
        Collection r = new LinkedHashSet();
        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            r.addAll(Arrays.asList(resolver.listTokenValues(token, otherTokenValues)));
        }
        return (String[]) r.toArray(new String[r.size()]);
    }

    public OrganisationEntry[] listOrganisationEntries() {
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.