/** * Directly assign a repo to this repogroup. * * @param repo * * @return the mapping that was added */ public RepoRepoGroup addRepo(Repo repo) { if (this.repoRepoGroups == null) { this.repoRepoGroups = new HashSet<RepoRepoGroup>(); } RepoRepoGroup mapping = new RepoRepoGroup(repo, this); this.repoRepoGroups.add(mapping); repo.addRepoGroup(this); return mapping; }
if (createMeGroup != null) { RepoGroup group = getRepoGroupByName(createMeGroup); addMe.addRepoGroup(group);