Package org.eclipse.egit.core

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


  private ProjectReference projectReference;

  @Before
  public void createProjectReferenceFromString() throws IllegalArgumentException, URISyntaxException {
    String reference = version + "," + url + "," + branch + "," + project;
    projectReference = new ProjectReference(reference);
    assertNotNull(projectReference);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.ProjectReference

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.