Examples of ProjectReference


Examples of org.apache.maven.archiva.model.ProjectReference

        throws Exception
    {
        File actualFile = new File( managedDefaultDir, requestedResource );
        assertTrue( actualFile.exists() );

        ProjectReference metadata = createProjectReference( requestedResource );

        // Build expected metadata XML
        StringWriter expectedMetadataXml = new StringWriter();
        ArchivaRepositoryMetadata m = new ArchivaRepositoryMetadata();
        m.setGroupId( metadata.getGroupId() );
        m.setArtifactId( metadata.getArtifactId() );
        m.setLatestVersion( latestVersion );
        m.setReleasedVersion( releaseVersion );

        if ( expectedVersions != null )
        {
View Full Code Here

Examples of org.eclipse.egit.core.ProjectReference

      throws TeamException {
    final Map<URIish, Map<String, Set<ProjectReference>>> repositories = new LinkedHashMap<URIish, Map<String, Set<ProjectReference>>>();

    for (final String reference : referenceStrings) {
      try {
        final ProjectReference projectReference = new ProjectReference(
            reference);
        Map<String, Set<ProjectReference>> repositoryBranches = repositories
            .get(projectReference.getRepository());
        if (repositoryBranches == null) {
          repositoryBranches = new HashMap<String, Set<ProjectReference>>();
          repositories.put(projectReference.getRepository(),
              repositoryBranches);
        }
        Set<ProjectReference> projectReferences = repositoryBranches
            .get(projectReference.getBranch());
        if (projectReferences == null) {
          projectReferences = new LinkedHashSet<ProjectReference>();
          repositoryBranches.put(projectReference.getBranch(),
              projectReferences);
        }

        projectReferences.add(projectReference);
      } catch (final IllegalArgumentException 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.