Examples of configureDefault()


Examples of org.apache.ivy.Ivy.configureDefault()

    private Ivy getIvy(URL settingsFile, Collection<File> propertiesFiles) throws IvyException {
        try {
            IvySettings settings = getIvySettings(settingsFile, propertiesFiles);
            Ivy ivy = Ivy.newInstance(settings);
            ivy.configureDefault();
            ivy.setSettings(settings);
            if (settingsFile != null) {
                ivy.configure(settingsFile);
            }
            return ivy;
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

import org.apache.ivy.plugins.resolver.IvyRepResolver;

public class ConfigureTest extends TestCase {
    public void testDefault() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();

        IvySettings settings = ivy.getSettings();
        assertNotNull(settings.getDefaultResolver());

        DependencyResolver publicResolver = settings.getResolver("public");
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

    private ArtifactOrigin origin;

    protected void setUp() throws Exception {
        File f = File.createTempFile("ivycache", ".dir");
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();
        f.delete(); // we want to use the file as a directory, so we delete the file itself
        cacheManager = new DefaultRepositoryCacheManager();
        cacheManager.setSettings(settings);
        cacheManager.setBasedir(f);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

public class IvySettingsTest extends TestCase {

    public void testChangeDefaultResolver() throws ParseException, IOException {
        Ivy ivy = new Ivy();
        ivy.configureDefault();

        IvySettings settings = ivy.getSettings();
        DependencyResolver defaultResolver = settings.getDefaultResolver();
       
        assertNotNull(defaultResolver);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

    private ArtifactOrigin origin;

    protected void setUp() throws Exception {
        File f = File.createTempFile("ivycache", ".dir");
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();
        f.delete(); // we want to use the file as a directory, so we delete the file itself
        cacheManager = new DefaultRepositoryCacheManager();
        cacheManager.setSettings(settings);
        cacheManager.setBasedir(f);
View Full Code Here

Examples of org.apache.ivy.Ivy.configureDefault()

    private ArtifactOrigin origin;

    protected void setUp() throws Exception {
        File f = File.createTempFile("ivycache", ".dir");
        Ivy ivy = new Ivy();
        ivy.configureDefault();
        IvySettings settings = ivy.getSettings();
        f.delete(); // we want to use the file as a directory, so we delete the file itself
        cacheManager = new CacheManager(settings, f);

        artifact = createArtifact("org", "module", "rev", "name", "type", "ext");
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.