Search in sources :

Example 1 with WorkspaceLatestStrategy

use of org.apache.ivy.plugins.latest.WorkspaceLatestStrategy in project ant-ivy by apache.

the class IvySettings method getLatestStrategy.

public synchronized LatestStrategy getLatestStrategy(String name) {
    if ("default".equals(name)) {
        return getDefaultLatestStrategy();
    }
    LatestStrategy strategy = latestStrategies.get(name);
    if (workspaceResolver != null && !(strategy instanceof WorkspaceLatestStrategy)) {
        strategy = new WorkspaceLatestStrategy(strategy);
        latestStrategies.put(name, strategy);
    }
    return strategy;
}
Also used : WorkspaceLatestStrategy(org.apache.ivy.plugins.latest.WorkspaceLatestStrategy) LatestStrategy(org.apache.ivy.plugins.latest.LatestStrategy) WorkspaceLatestStrategy(org.apache.ivy.plugins.latest.WorkspaceLatestStrategy) OsgiLatestStrategy(org.apache.ivy.osgi.core.OsgiLatestStrategy)

Aggregations

OsgiLatestStrategy (org.apache.ivy.osgi.core.OsgiLatestStrategy)1 LatestStrategy (org.apache.ivy.plugins.latest.LatestStrategy)1 WorkspaceLatestStrategy (org.apache.ivy.plugins.latest.WorkspaceLatestStrategy)1