Package org.apache.ivy.core.resolve

Examples of org.apache.ivy.core.resolve.ResolveOptions


        } catch (Exception e) {
            throw new BuildException("impossible to resolve dependencies: "+e, e);
        }
    }
  private ResolveOptions getResolveOptions(String[] confs, IvySettings settings) {
    return new ResolveOptions()
      .setConfs(confs)
      .setValidate(doValidate(settings))
      .setArtifactFilter(FilterHelper.getArtifactTypeFilter(_type))
      .setRevision(_revision)
      .setCache(CacheManager.getInstance(settings, _cache))
View Full Code Here


    // ///////////////////////////////////////////////////////////////////////

    public ResolvedModuleRevision findModule(ModuleRevisionId mrid) {
        pushContext();
        try {
            ResolveOptions options = new ResolveOptions();
            options.setValidate(false);
            return resolveEngine.findModule(mrid, options);
        } finally {
            popContext();
        }
    }
View Full Code Here

            ModuleRevisionId parentModRevID) throws ParseException {
        DependencyDescriptor dd = new DefaultDependencyDescriptor(parentModRevID, true);
        ResolveData data = IvyContext.getContext().getResolveData();
        if (data == null) {
            ResolveEngine engine = IvyContext.getContext().getIvy().getResolveEngine();
            ResolveOptions options = new ResolveOptions();
            options.setDownload(false);
            data = new ResolveData(engine, options);
        }
       
        DependencyResolver resolver = ivySettings.getResolver(parentModRevID);
        if (resolver == null) {
View Full Code Here

                            + parentMrid.toString());
            DependencyDescriptor dd = new DefaultDependencyDescriptor(parentMrid, true);
            ResolveData data = IvyContext.getContext().getResolveData();
            if (data == null) {
                ResolveEngine engine = IvyContext.getContext().getIvy().getResolveEngine();
                ResolveOptions options = new ResolveOptions();
                options.setDownload(false);
                data = new ResolveData(engine, options);
            }
            DependencyResolver resolver = getSettings().getResolver(parentMrid);
            dd = NameSpaceHelper.toSystem(dd, getSettings().getContextNamespace());
            ResolvedModuleRevision otherModule = resolver.getDependency(dd, data);
View Full Code Here

         */
        protected ModuleDescriptor resolveParentFromModuleInheritanceRepository(ModuleRevisionId parentMrid) throws ParseException {
            Message.debug("Trying to load included ivy file from module inheritance repository " );
            DependencyDescriptor dd = new DefaultDependencyDescriptor(parentMrid, true);
            ResolveEngine engine = IvyContext.getContext().getIvy().getResolveEngine();
            ResolveOptions options = new ResolveOptions();
            //not sure we need to download parent module
            options.setDownload(false);
            ResolveData data = new ResolveData(engine, options);

            DependencyResolver resolver = IvyContext.getContext().getSettings().getResolver(MODULE_INHERITANCE_REPOSITORY);
            dd = NameSpaceHelper.toSystem(dd, getSettings().getContextNamespace());
            ResolvedModuleRevision otherModule = resolver.getDependency(dd, data);
View Full Code Here

                e.getMessage().indexOf("[ org1 | mod1.2 | 2.1.0 ]:2.1 (needed by [[ apache | resolve-noconflict | 1.0 ]])")!=-1);
        }
    }
   
    private ResolveOptions getResolveOptions() {
    return new ResolveOptions().setCache(CacheManager.getInstance(ivy.getSettings())).setValidate(false);
  }
View Full Code Here

        }
      }
    }

    private ResolveOptions getResolveOptions() {
    return new ResolveOptions()
      .setCache(CacheManager.getInstance(ivy.getSettings()))
      .setValidate(false);
  }
View Full Code Here

        }
    }

   
    private ResolveOptions getResolveOptions() {
    return new ResolveOptions().setCache(CacheManager.getInstance(ivy.getSettings())).setValidate(false);
  }
View Full Code Here

        cleanRepo();
    }
   
    private ResolveOptions getResolveOptions(String[] confs) {
    return new ResolveOptions().setConfs(confs).setCache(CacheManager.getInstance(_ivy.getSettings(), _cache));
  }
View Full Code Here

   
    protected void setUp() throws Exception {
      _settings = new IvySettings();
        _engine = new ResolveEngine(_settings, new EventManager(), new SortEngine(_settings));
        _cache = new File("build/cache");
        _data = new ResolveData(_engine, new ResolveOptions().setCache(CacheManager.getInstance(_settings, _cache)));
        _cache.mkdirs();
        _settings.setDefaultCache(_cache);
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.resolve.ResolveOptions

Copyright © 2018 www.massapicom. 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.