Пример #1
0
 /**
  * Extracts the {@link URI}/{@link Repository} map from the profile.
  *
  * @param p
  * @return
  * @throws URISyntaxException
  */
 public Map<URI, Repository> getRepositories(Profile p) throws Exception {
   Map<URI, Repository> repositories = new HashMap<URI, Repository>();
   for (String repositoryUrl : p.getRepositories()) {
     URI repoUri = new URI(repositoryUrl);
     AgentUtils.addRepository(downloadManager, repositories, repoUri);
   }
   return repositories;
 }