Search in sources :

Example 1 with WorkspaceChainResolver

use of org.apache.ivy.plugins.resolver.WorkspaceChainResolver in project ant-ivy by apache.

the class IvySettings method getResolver.

public synchronized DependencyResolver getResolver(String resolverName) {
    DependencyResolver r = getDictatorResolver();
    if (r != null) {
        return r;
    }
    DependencyResolver resolver = resolversMap.get(resolverName);
    if (resolver == null) {
        Message.error("unknown resolver " + resolverName);
    } else if (workspaceResolver != null && !(resolver instanceof WorkspaceChainResolver)) {
        resolver = new WorkspaceChainResolver(this, resolver, workspaceResolver);
        resolversMap.put(resolver.getName(), resolver);
        resolversMap.put(resolverName, resolver);
    }
    return resolver;
}
Also used : DependencyResolver(org.apache.ivy.plugins.resolver.DependencyResolver) WorkspaceChainResolver(org.apache.ivy.plugins.resolver.WorkspaceChainResolver)

Aggregations

DependencyResolver (org.apache.ivy.plugins.resolver.DependencyResolver)1 WorkspaceChainResolver (org.apache.ivy.plugins.resolver.WorkspaceChainResolver)1