Package org.apache.ivy.ant

Examples of org.apache.ivy.ant.IvyInstall


        }
    }

    private void install(ModuleRevisionId moduleRevisionId, String targetResolver, String ivyInstanceRef) {
        IvyInstall install = new IvyInstall();
        install.setSettingsRef(IvyInstanceHelper.buildIvyReference(getProject(), ivyInstanceRef));

        // locate source resolver
        IvyAntSettings ivyAntSettings = IvyInstanceHelper.getIvyAntSettings(getProject(), ivyInstanceRef);
        String from = ivyAntSettings.getConfiguredIvyInstance(this).getSettings().getResolverName(moduleRevisionId);
        install.setFrom(from);

        install.setTo(targetResolver);
        install.setOrganisation(moduleRevisionId.getOrganisation());
        install.setModule(moduleRevisionId.getName());
        install.setRevision(moduleRevisionId.getRevision());
        install.setOverwrite(true);
        install.setHaltonfailure(false);
        initTask(install).execute();

    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.ant.IvyInstall

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.