Package org.apache.ivy.core.resolve

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


            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))
                .setDate(getPubDate(pubdate, null)).setUseCacheOnly(useCacheOnly).setUseOrigin(
                    useOrigin).setTransitive(transitive).setResolveId(resolveId);
    }
View Full Code Here


                }
            }
            DefaultModuleDescriptor md = DefaultModuleDescriptor.newCallerInstance(mrids, true,
                false);
            String resolveId = ResolveOptions.getDefaultResolveId(md);
            ResolveReport report = ivy.resolve(md, new ResolveOptions().setResolveId(resolveId)
                    .setCache(CacheManager.getInstance(settings, cache)).setValidate(
                        doValidate(settings)));

            CacheManager cacheMgr = getIvyInstance().getCacheManager(cache);
            new XmlReportOutputter().output(report, cache);
View Full Code Here

            boolean useOrigin, Filter artifactFilter) {
        ivy.getResolveEngine().downloadArtifacts(report, cacheManager, useOrigin, artifactFilter);
    }

    public ResolvedModuleRevision findModule(ModuleRevisionId id) {
        ResolveOptions options = new ResolveOptions();
        options.setValidate(false);
        options.setCache(CacheManager.getInstance(ivy.getSettings()));
        return ivy.getResolveEngine().findModule(id, options);
    }
View Full Code Here

    }

    private ResolveOptions newResolveOptions(String[] confs, String revision, File cache,
            Date date, boolean validate, boolean useCacheOnly, boolean transitive,
            boolean useOrigin, boolean download, boolean outputReport, Filter artifactFilter) {
        return new ResolveOptions().setConfs(confs).setRevision(revision).setCache(
            ivy.getCacheManager(cache == null ? ivy.getSettings().getDefaultCache() : cache))
                .setValidate(validate).setUseCacheOnly(useCacheOnly).setTransitive(transitive)
                .setUseOrigin(useOrigin).setDownload(download).setOutputReport(outputReport)
                .setArtifactFilter(artifactFilter);
    }
View Full Code Here

    private RetrieveOptions getRetrieveOptions() {
        return new RetrieveOptions().setCache(CacheManager.getInstance(ivy.getSettings(), cache));
    }

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

    // ///////////////////////////////////////////////////////////////////////
    // SEARCH
    // ///////////////////////////////////////////////////////////////////////

    public ResolvedModuleRevision findModule(ModuleRevisionId mrid) {
        ResolveOptions options = new ResolveOptions();
        options.setValidate(false);
        options.setCache(CacheManager.getInstance(settings));
        return resolveEngine.findModule(mrid, options);
    }
View Full Code Here

                } else if (ivyfile.isDirectory()) {
                    error(options, "ivy file is not a file: " + ivyfile);
                }
            }

            ResolveOptions resolveOptions = new ResolveOptions().setConfs(confs).setCache(
                cacheManager).setValidate(validate).setUseOrigin(line.hasOption("useOrigin"));
            ResolveReport report = ivy.resolve(ivyfile.toURL(), resolveOptions);
            if (report.hasError()) {
                System.exit(1);
            }
View Full Code Here

                md = (ModuleDescriptor) getResolvedDescriptor(getOrganisation(), getModule()
                        , false);
            }
            IvyNode[] dependencies = getIvyInstance().getResolveEngine().getDependencies(
                md,
                new ResolveOptions().setConfs(confs).setCache(cacheManager).setResolveId(
                    getResolveId()).setValidate(doValidate(getSettings())), null);

            Map artifactsToCopy = getIvyInstance().getRetrieveEngine().determineArtifactsToCopy(
                ModuleRevisionId.newInstance(getOrganisation(), getModule(), getRevision()),
                pattern,
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

                            + 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

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.