Examples of ArtifactMapping


Examples of org.sonatype.nexus.plugins.p2.repository.mappings.ArtifactMapping

    final Xpp3Dom[] artifactRepositories = dom.getChildren("repository");
    for (final Xpp3Dom artifactRepositoryDom : artifactRepositories) {
      final String repositoryUri = artifactRepositoryDom.getAttribute("uri");

      final Map<String, ArtifactPath> artifactPaths = new LinkedHashMap<String, ArtifactPath>();
      final ArtifactMapping artifactMapping = new ArtifactMapping(repositoryUri, artifactPaths);
      for (final Xpp3Dom artifactDom : artifactRepositoryDom.getChildren("artifact")) {
        artifactPaths.put(artifactDom.getAttribute("remotePath"),
            new ArtifactPath(artifactDom.getAttribute("remotePath"), artifactDom.getAttribute("md5")));
      }
      tempRemoteArtifactMappings.put(repositoryUri, artifactMapping);
View Full Code Here

Examples of org.sonatype.nexus.plugins.p2.repository.mappings.ArtifactMapping

  {
    final P2ProxyRepository p2repo = proxy.adaptToFacet(P2ProxyRepository.class);

    Map<String, ArtifactPath> paths;
    try {
      final ArtifactMapping artifactMapping = p2repo.getArtifactMappings().get(baseUrl);
      if (artifactMapping == null) {
        log.debug("Unable to retrive remote has for " + item.getPath());
        return null;
      }
      paths = artifactMapping.getArtifactsPath();
    }
    catch (StorageException e) {
      throw new LocalStorageException(e);
    }
    catch (final IllegalOperationException e) {
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.