Examples of IvyAntSettings


Examples of org.apache.ivy.ant.IvyAntSettings

    private EasyAntConfiguration easyantConfiguration = new EasyAntConfiguration();

    @Override
    public void execute() throws BuildException {
        EasyAntEngine eaEngine = new EasyAntEngine(getEasyantConfiguration());
        IvyAntSettings easyantIvyInstance = eaEngine.configureEasyAntIvyInstance(getProject());
        eaEngine.configurePluginService(getProject(), easyantIvyInstance);
    }
View Full Code Here

Examples of org.apache.ivy.ant.IvyAntSettings

        executeTask(easyantIvyConfigure, "configure-easyant", project);

        configureEasyAntOfflineRepository(project);

        IvyAntSettings easyantIvySettings = IvyInstanceHelper.getEasyAntIvyAntSettings(project);

        // FIXME: hack as ResolutionCacheManager and RepositoryCacheManger use XmlModuleDescriptorParser under the hood
        Ivy easyantIvyInstance = easyantIvySettings.getConfiguredIvyInstance(easyantIvyConfigure);

        EasyAntRepositoryCacheManager cacheManager = new EasyAntRepositoryCacheManager("default-easyant-cache",
                easyantIvyInstance.getSettings(), easyantIvyInstance.getSettings().getDefaultCache());
        easyantIvyInstance.getSettings().setDefaultRepositoryCacheManager(cacheManager);
View Full Code Here

Examples of org.apache.ivy.ant.IvyAntSettings

        project.setUserProperty(EasyAntMagicNames.EASYANT_OFFLINE, Boolean.toString(configuration.isOffline()));

        ProjectHelper helper = ProjectUtils.configureProjectHelper(project);

        IvyAntSettings easyantIvySettings = configureEasyAntIvyInstance(project);
        configurePluginService(project, easyantIvySettings);

        // Profile
        if (configuration.getActiveBuildConfigurations().size() != 0) {
            String buildConfigurations = null;
View Full Code Here

Examples of org.apache.ivy.ant.IvyAntSettings

                project.setUserProperty(arg, value);
            }
            project.setName("EasyAnt");
            // not sure we need to invoke init here
            project.init();
            IvyAntSettings ivyAntSettings = configureEasyAntIvyInstance(project);
            configurePluginService(project, ivyAntSettings);
        }
        return pluginService;
    }
View Full Code Here

Examples of org.apache.ivy.ant.IvyAntSettings

    @BeforeClass
    public static void setUp() throws ParseException, IOException {
        // configure the ivyinstance
        Project p = new Project();
        IvyAntSettings ivyAntSettings = new IvyAntSettings();
        ivyAntSettings.setUrl(PluginServiceTest.class.getResource("/ivysettings-test.xml"));
        ivyAntSettings.setProject(p);
        pluginService = new DefaultPluginServiceImpl(ivyAntSettings);

    }
View Full Code Here

Examples of org.apache.ivy.ant.IvyAntSettings

    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());
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.