Package org.jboss.forge.addon.dependencies

Examples of org.jboss.forge.addon.dependencies.DependencyRepository


      if (repos != null)
      {
         for (Repository repo : repos)
         {
            results.add(new DependencyRepository(repo.getId(), repo.getUrl()));
         }
      }
      return Collections.unmodifiableList(results);
   }
View Full Code Here


   {
      List<DependencyRepository> repos = Lists.newArrayList();

      for (GradleRepository gradleRepo : getGradleFacet().getModel().getEffectiveRepositories())
      {
         repos.add(new DependencyRepository(gradleRepo.getName(), gradleRepo.getUrl()));
      }

      return repos;
   }
View Full Code Here

   }

   @Override
   public DependencyRepository removeRepository(String url)
   {
      DependencyRepository repo = null;

      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      repo = findRepositoryByUrl(getRepositories(), url);
      model.removeRepository(GradleRepositoryBuilder.create().setUrl(url));
      getGradleFacet().setModel(model);
View Full Code Here

      final Result result;
      Project project = getSelectedProject(context.getUIContext());
      DependencyFacet deps = project.getFacet(DependencyFacet.class);

      String urlValue = url.getValue();
      DependencyRepository rep = deps.removeRepository(urlValue);
      if (rep != null)
      {
         result = Results.success("Removed repository [" + rep.getId() + "->" + rep.getUrl() + "]");
      }
      else
      {
         result = Results.fail("No repository with url [" + urlValue + "]");
      }
View Full Code Here

   }

   @Override
   public DependencyRepository getAptPluginRepository()
   {
      return new DependencyRepository("EclipseLink",
               "http://download.eclipse.org/rt/eclipselink/maven.repo");
   }
View Full Code Here

   }

   @Override
   public DependencyRepository getAptPluginRepository()
   {
      return new DependencyRepository("EclipseLink",
               "http://download.eclipse.org/rt/eclipselink/maven.repo");
   }
View Full Code Here

      MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
      Model pom = maven.getPOM();
      List<Repository> repos = pom.getRepositories();
      for (Repository repo : repos)
      {
         results.add(new DependencyRepository(repo.getId(), repo.getUrl()));
      }
      return Collections.unmodifiableList(results);
   }
View Full Code Here

         {
            if (repo.getUrl().equals(url.trim()))
            {
               repos.remove(repo);
               maven.setPOM(pom);
               return new DependencyRepository(repo.getId(), repo.getUrl());
            }
         }
      }
      return null;
View Full Code Here

      MavenFacet maven = getFaceted().getFacet(MavenFacet.class);
      Model pom = maven.getPOM();
      List<Repository> repos = pom.getRepositories();
      for (Repository repo : repos)
      {
         results.add(new DependencyRepository(repo.getId(), repo.getUrl()));
      }
      return Collections.unmodifiableList(results);
   }
View Full Code Here

         {
            if (repo.getUrl().equals(url.trim()))
            {
               repos.remove(repo);
               maven.setPOM(pom);
               return new DependencyRepository(repo.getId(), repo.getUrl());
            }
         }
      }
      return null;
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.dependencies.DependencyRepository

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.