Search in sources :

Example 1 with SortEngine

use of org.apache.ivy.core.sort.SortEngine in project ant-ivy by apache.

the class FileSystemResolverTest method setUp.

@Before
public void setUp() {
    settings = new IvySettings();
    engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
    cache = new File("build/cache");
    data = new ResolveData(engine, new ResolveOptions());
    cache.mkdirs();
    settings.setDefaultCache(cache);
    cacheManager = (DefaultRepositoryCacheManager) settings.getDefaultRepositoryCacheManager();
}
Also used : ResolveEngine(org.apache.ivy.core.resolve.ResolveEngine) SortEngine(org.apache.ivy.core.sort.SortEngine) ResolveData(org.apache.ivy.core.resolve.ResolveData) EventManager(org.apache.ivy.core.event.EventManager) IvySettings(org.apache.ivy.core.settings.IvySettings) File(java.io.File) ResolveOptions(org.apache.ivy.core.resolve.ResolveOptions) Before(org.junit.Before)

Example 2 with SortEngine

use of org.apache.ivy.core.sort.SortEngine in project ant-ivy by apache.

the class IBiblioResolverTest method setUp.

@Before
public void setUp() {
    settings = new IvySettings();
    engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
    data = new ResolveData(engine, new ResolveOptions());
    TestHelper.createCache();
    settings.setDefaultCache(TestHelper.cache);
}
Also used : ResolveEngine(org.apache.ivy.core.resolve.ResolveEngine) SortEngine(org.apache.ivy.core.sort.SortEngine) ResolveData(org.apache.ivy.core.resolve.ResolveData) EventManager(org.apache.ivy.core.event.EventManager) IvySettings(org.apache.ivy.core.settings.IvySettings) ResolveOptions(org.apache.ivy.core.resolve.ResolveOptions) Before(org.junit.Before)

Example 3 with SortEngine

use of org.apache.ivy.core.sort.SortEngine in project ant-ivy by apache.

the class JarResolverTest method setUp.

@Before
public void setUp() {
    settings = new IvySettings();
    engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
    cache = new File("build/cache");
    data = new ResolveData(engine, new ResolveOptions());
    cache.mkdirs();
    settings.setDefaultCache(cache);
    cacheManager = (DefaultRepositoryCacheManager) settings.getDefaultRepositoryCacheManager();
}
Also used : ResolveEngine(org.apache.ivy.core.resolve.ResolveEngine) SortEngine(org.apache.ivy.core.sort.SortEngine) ResolveData(org.apache.ivy.core.resolve.ResolveData) EventManager(org.apache.ivy.core.event.EventManager) IvySettings(org.apache.ivy.core.settings.IvySettings) File(java.io.File) ResolveOptions(org.apache.ivy.core.resolve.ResolveOptions) Before(org.junit.Before)

Example 4 with SortEngine

use of org.apache.ivy.core.sort.SortEngine in project ant-ivy by apache.

the class Maven2LocalTest method setUp.

@Before
public void setUp() {
    settings = new IvySettings();
    engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
    cache = new File("build/cache");
    data = new ResolveData(engine, new ResolveOptions());
    cache.mkdirs();
    settings.setDefaultCache(cache);
}
Also used : ResolveEngine(org.apache.ivy.core.resolve.ResolveEngine) SortEngine(org.apache.ivy.core.sort.SortEngine) ResolveData(org.apache.ivy.core.resolve.ResolveData) EventManager(org.apache.ivy.core.event.EventManager) IvySettings(org.apache.ivy.core.settings.IvySettings) File(java.io.File) ResolveOptions(org.apache.ivy.core.resolve.ResolveOptions) Before(org.junit.Before)

Example 5 with SortEngine

use of org.apache.ivy.core.sort.SortEngine in project ant-ivy by apache.

the class URLResolverTest method setUp.

@Before
public void setUp() {
    settings = new IvySettings();
    engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
    data = new ResolveData(engine, new ResolveOptions());
    TestHelper.createCache();
    settings.setDefaultCache(TestHelper.cache);
}
Also used : ResolveEngine(org.apache.ivy.core.resolve.ResolveEngine) SortEngine(org.apache.ivy.core.sort.SortEngine) ResolveData(org.apache.ivy.core.resolve.ResolveData) EventManager(org.apache.ivy.core.event.EventManager) IvySettings(org.apache.ivy.core.settings.IvySettings) ResolveOptions(org.apache.ivy.core.resolve.ResolveOptions) Before(org.junit.Before)

Aggregations

EventManager (org.apache.ivy.core.event.EventManager)14 ResolveEngine (org.apache.ivy.core.resolve.ResolveEngine)14 IvySettings (org.apache.ivy.core.settings.IvySettings)14 SortEngine (org.apache.ivy.core.sort.SortEngine)14 ResolveData (org.apache.ivy.core.resolve.ResolveData)13 ResolveOptions (org.apache.ivy.core.resolve.ResolveOptions)12 Before (org.junit.Before)12 File (java.io.File)5 SearchEngine (org.apache.ivy.core.search.SearchEngine)2 TestFixture (org.apache.ivy.TestFixture)1 DeliverEngine (org.apache.ivy.core.deliver.DeliverEngine)1 InstallEngine (org.apache.ivy.core.install.InstallEngine)1 PublishEngine (org.apache.ivy.core.publish.PublishEngine)1 RepositoryManagementEngine (org.apache.ivy.core.repository.RepositoryManagementEngine)1 RetrieveEngine (org.apache.ivy.core.retrieve.RetrieveEngine)1 XmlSettingsParser (org.apache.ivy.core.settings.XmlSettingsParser)1 TransferEvent (org.apache.ivy.plugins.repository.TransferEvent)1 TransferListener (org.apache.ivy.plugins.repository.TransferListener)1 DefaultMessageLogger (org.apache.ivy.util.DefaultMessageLogger)1