Package org.apache.ivy

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


        options.setSync(false);
        options.setResolveId(resolve.getResolveId());
        options.setConfs(new String[] { conf });
        options.setDestIvyPattern("${easyant.localrepo.basedir}/[organization]/[module]/[revision]/ivy.xml");
        try {
            ivy.retrieve(md.getModuleRevisionId(),
                    "${easyant.localrepo.basedir}/[organization]/[module]/[revision]/[type]s/[artifact].[ext]", options);
        } catch (IOException e) {
            throw new BuildException("Unable to build the local repository", e);
        }
    }
View Full Code Here


         //retrieveOptions.setArtifactFilter(jarArtifactFilter);

         // default logging option
         retrieveOptions.setLog(LogOptions.LOG_DEFAULT);
         // retrieve them!
         int packagesRetrieved = ivy.retrieve(mRID, pattern, retrieveOptions);
         logger.info("Retrieved " + packagesRetrieved + " dependencies for package " + pkgCtx);
         Set<PackageContext> depPkgCtxs = new HashSet<PackageContext>();
         // for each of the retrieved packages, create a package context
         for (File depPkg : getJarFilesRecursively(pkgTmpDir))
         {
View Full Code Here

                shell.println("resolving dependencies...");
                ResolveReport resolveReport = ivy.resolve(tempFile);

                shell.println("synchronizing dependencies in " + shell.currentLocation().resolve("target/dependency") + " ...");
                ivy.retrieve(resolveReport.getModuleDescriptor().getModuleRevisionId(),
                        new RetrieveOptions()
                                .setDestArtifactPattern(
                                        shell.currentLocation().toAbsolutePath() + "/target/dependency/[artifact]-[revision].[ext]")
                        .setSync(true)
                );
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.