Examples of UpdateSite


Examples of at.bestsolution.releng.distrobuilder.UpdateSite

    builder.addP2Repository(r);
    return r;
  }
 
  public UpdateSite createUpdateSite() {
    UpdateSite u = new UpdateSite();
    builder.addUpdateSite(u);
    return u;
  }
View Full Code Here

Examples of hudson.model.UpdateSite

        PersistedList<UpdateSite> sites = uc.getSites();
        for (UpdateSite s : sites) {
            if (s.getId().equals("default"))
                sites.remove(s);
        }
        sites.add(new UpdateSite("default",site));
       
        return HttpResponses.redirectToContextRoot();
    }
View Full Code Here

Examples of hudson.model.UpdateSite

        DownloadService.neverUpdate = true;
        UpdateSite.neverUpdate = true;

        PersistedList<UpdateSite> sites = hudson.getUpdateCenter().getSites();
        sites.clear();
        sites.add(new UpdateSite("default", updateCenterUrl));
    }
View Full Code Here

Examples of hudson.model.UpdateSite

        PersistedList<UpdateSite> sites = uc.getSites();
        for (UpdateSite s : sites) {
            if (s.getId().equals("default"))
                sites.remove(s);
        }
        sites.add(new UpdateSite("default",site));
       
        return HttpResponses.redirectToContextRoot();
    }
View Full Code Here

Examples of org.apache.ivy.osgi.updatesite.xml.UpdateSite

        if (repo != null) {
            return repo;
        }
        Message.verbose("\tNo P2 artifacts, falling back on the old fashioned updatesite");
        // then try the old update site
        UpdateSite site = loadSite(repoUri);
        if (site == null) {
            return null;
        }
        repo = loadFromDigest(site);
        if (repo != null) {
View Full Code Here

Examples of org.apache.ivy.osgi.updatesite.xml.UpdateSite

        if (report.getDownloadStatus() == DownloadStatus.FAILED) {
            return null;
        }
        InputStream in = new FileInputStream(report.getLocalFile());
        try {
            UpdateSite site = EclipseUpdateSiteParser.parse(in);
            site.setUri(normalizeSiteUri(site.getUri(), siteUri));
            return site;
        } finally {
            in.close();
        }
    }
View Full Code Here

Examples of org.apache.ivy.osgi.updatesite.xml.UpdateSite

        if (repo != null) {
            return repo;
        }
        Message.verbose("\tNo P2 artifacts, falling back on the old fashioned updatesite");
        // then try the old update site
        UpdateSite site = loadSite(repoUri);
        if (site == null) {
            return null;
        }
        repo = loadFromDigest(site);
        if (repo != null) {
View Full Code Here

Examples of org.apache.ivy.osgi.updatesite.xml.UpdateSite

        if (report.getDownloadStatus() == DownloadStatus.FAILED) {
            return null;
        }
        InputStream in = new FileInputStream(report.getLocalFile());
        try {
            UpdateSite site = EclipseUpdateSiteParser.parse(in);
            site.setUri(normalizeSiteUri(site.getUri(), siteUri));
            return site;
        } finally {
            in.close();
        }
    }
View Full Code Here

Examples of org.eclipse.tycho.model.UpdateSite

  }

  private void mirrorUpdateSite(final boolean force)
      throws StorageException, IllegalOperationException, UnsupportedStorageOperationException
  {
    UpdateSite site;
    try {
      final RepositoryItemUid siteUID = createUid(P2Constants.SITE_XML);
      String oldSha1 = null;

      final ResourceStoreRequest request = new ResourceStoreRequest(siteUID.getPath());

      try {
        oldSha1 =
            getLocalStorage().retrieveItem(this, request).getRepositoryItemAttributes().get(
                StorageFileItem.DIGEST_SHA1_KEY);
      }
      catch (final ItemNotFoundException e) {
        // it's okay
      }

      final StorageFileItem siteItem = (StorageFileItem) doRetrieveRemoteItem(request);

      if (!force && oldSha1 != null
          && oldSha1.equals(siteItem.getRepositoryItemAttributes().get(StorageFileItem.DIGEST_SHA1_KEY))) {
        return;
      }
      site = UpdateSite.read(siteItem.getInputStream());
    }
    catch (final Exception e) {
      throw new StorageException("Could not read site.xml", e);
    }

    final List<SiteFeatureRef> features = site.getFeatures();

    log.info("Mirroring " + features.size() + " features from update site " + getName());

    final Set<String> mirrored = new HashSet<String>();
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.