Package org.apache.ivy.core.retrieve

Examples of org.apache.ivy.core.retrieve.RetrieveOptions


            String destFilePattern, String destIvyPattern, Filter artifactFilter)
            throws ParseException, IOException {
        return ivy.getRetrieveEngine().determineArtifactsToCopy(
            new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
            destFilePattern,
            new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
                    .setArtifactFilter(artifactFilter));
    }
View Full Code Here


    public Map determineArtifactsToCopy(ModuleId moduleId, String[] confs, File cache,
            String destFilePattern, String destIvyPattern) throws ParseException, IOException {
        return ivy.getRetrieveEngine().determineArtifactsToCopy(
            new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()), destFilePattern,
            new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern));
    }
View Full Code Here

            String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin,
            boolean makeSymlinks) {
        try {
            return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
                destFilePattern,
                new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
                        .setArtifactFilter(artifactFilter).setSync(sync).setUseOrigin(useOrigin)
                        .setMakeSymlinks(makeSymlinks));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

    public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
            String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin) {
        try {
            return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
                destFilePattern,
                new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
                        .setArtifactFilter(artifactFilter).setSync(sync).setUseOrigin(useOrigin));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
            String destIvyPattern, Filter artifactFilter) {
        try {
            return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
                destFilePattern,
                new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
                        .setArtifactFilter(artifactFilter));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
            String destIvyPattern) {
        try {
            return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
                destFilePattern,
                new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    }

    public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern) {
        try {
            return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
                destFilePattern, new RetrieveOptions().setConfs(confs));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            }
            String ivyPattern = settings.substitute(line.getOptionValue("ivypattern"));
            ivy.retrieve(
                md.getModuleRevisionId(),
                retrievePattern,
                new RetrieveOptions()
                        .setConfs(confs)
                        .setSync(line.hasOption("sync"))
                        .setUseOrigin(line.hasOption("useOrigin"))
                        .setDestIvyPattern(ivyPattern)
                        .setArtifactFilter(
View Full Code Here

        pattern = getProperty(pattern, getSettings(), "ivy.retrieve.pattern");
        try {
            Filter artifactFilter = getArtifactFilter();
            RetrieveReport report = getIvyInstance().retrieve(
                getResolvedMrid(),
                ((RetrieveOptions) new RetrieveOptions().setLog(getLog()))
                        .setConfs(splitConfs(getConf())).setDestArtifactPattern(pattern)
                        .setDestIvyPattern(ivypattern).setArtifactFilter(artifactFilter)
                        .setSync(sync).setOverwriteMode(getOverwriteMode())
                        .setUseOrigin(isUseOrigin()).setMakeSymlinks(symlink)
                        .setMakeSymlinksInMass(symlinkmass).setResolveId(getResolveId())
View Full Code Here

                        .setResolveId(getResolveId()).setValidate(doValidate(getSettings())), null);

            Map artifactsToCopy = getIvyInstance().getRetrieveEngine().determineArtifactsToCopy(
                ModuleRevisionId.newInstance(getOrganisation(), getModule(), getRevision()),
                pattern,
                ((RetrieveOptions) new RetrieveOptions().setLog(getLog())).setConfs(confs)
                        .setResolveId(getResolveId()));

            Map moduleRevToArtifactsMap = new HashMap();
            for (Iterator iter = artifactsToCopy.keySet().iterator(); iter.hasNext();) {
                ArtifactDownloadReport artifact = (ArtifactDownloadReport) iter.next();
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.retrieve.RetrieveOptions

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.