Package org.apache.ivy.ant

Examples of org.apache.ivy.ant.IvyAntSettings$Credentials


    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


        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

        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

                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

    @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

    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

      return;
   
    String serviceName = "host/" + remoteHost.getHost();
    if (LOG.isDebugEnabled())
      LOG.debug("Fetching service ticket for host at: " + serviceName);
    Credentials serviceCred = null;
    try {
      PrincipalName principal = new PrincipalName(serviceName,
          PrincipalName.KRB_NT_SRV_HST);
      serviceCred = Credentials.acquireServiceCreds(principal
          .toString(), Krb5Util.ticketToCreds(getTgtFromSubject()));
View Full Code Here

      return;
   
    String serviceName = "host/" + remoteHost.getHost();
    if (LOG.isDebugEnabled())
      LOG.debug("Fetching service ticket for host at: " + serviceName);
    Credentials serviceCred = null;
    try {
      PrincipalName principal = new PrincipalName(serviceName,
          PrincipalName.KRB_NT_SRV_HST);
      serviceCred = Credentials.acquireServiceCreds(principal
          .toString(), Krb5Util.ticketToCreds(getTgtFromSubject()));
View Full Code Here

  return true;
    }

    private Credentials renewCredentials(Credentials creds)
    {
  Credentials lcreds;
  try {
      if (!creds.isRenewable())
    throw new RefreshFailedException("This ticket" +
        " is not renewable");
      if (System.currentTimeMillis() > cred.getRenewTill().getTime())
View Full Code Here

      return;
   
    String serviceName = "host/" + remoteHost.getHost();
    if (LOG.isDebugEnabled())
      LOG.debug("Fetching service ticket for host at: " + serviceName);
    Credentials serviceCred = null;
    try {
      PrincipalName principal = new PrincipalName(serviceName,
          PrincipalName.KRB_NT_SRV_HST);
      serviceCred = Credentials.acquireServiceCreds(principal
          .toString(), Krb5Util.ticketToCreds(getTgtFromSubject()));
View Full Code Here

TOP

Related Classes of org.apache.ivy.ant.IvyAntSettings$Credentials

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.