Examples of Artifacts


Examples of org.sonatype.nexus.plugins.p2.repository.metadata.Artifacts

  private ArrayList<Artifacts> loadArtifactsMetadata(final String[] files)
      throws IOException, XmlPullParserException
  {
    final ArrayList<Artifacts> repos = new ArrayList<Artifacts>();
    for (final String file : files) {
      repos.add(new Artifacts(loadXpp3Dom(file)));
    }
    return repos;
  }
View Full Code Here

Examples of org.sonatype.nexus.plugins.p2.repository.metadata.Artifacts

      throws RemoteStorageException, ItemNotFoundException
  {
    try {
      final List<StorageFileItem> fileItems = doRetrieveItems(P2Constants.ARTIFACTS_XML, context, repository);
      final ArtifactsMerge m = new ArtifactsMerge();
      final Artifacts metadata = m.mergeArtifactsMetadata(repository.getName(), fileItems);

      return createMetadataItems(
          repository,
          P2Constants.ARTIFACTS_XML,
          P2Constants.ARTIFACTS_JAR,
View Full Code Here

Examples of org.sonatype.nexus.plugins.p2.repository.metadata.Artifacts

    }
    catch (final IOException e) {
      throw new RemoteStorageException(e);
    }

    final Artifacts metadata = new Artifacts(dom);
    metadata.setRepositoryAttributes(repository.getName());
    final LinkedHashMap<String, String> properties = metadata.getProperties();
    final String mirrorsURL = properties.get(P2Constants.PROP_MIRRORS_URL);
    if (mirrorsURL != null) {
      context.put(CTX_MIRRORS_URL, mirrorsURL);
    }
    properties.remove(P2Constants.PROP_MIRRORS_URL);
    metadata.setProperties(properties);

    try {
      return createMetadataItems(
          repository,
          P2Constants.ARTIFACTS_XML,
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.