Examples of toCoordinates()


Examples of org.jboss.forge.container.addons.AddonId.toCoordinates()

      Iterator<AddonId> iterator = value.iterator();
      StringBuilder builder = new StringBuilder();
      while (iterator.hasNext())
      {
         AddonId addonId = iterator.next();
         builder.append(addonId.toCoordinates());

         manager.disable(addonId).perform();
         manager.remove(addonId).perform();

         if (iterator.hasNext())
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

      Iterator<AddonId> iterator = value.iterator();
      StringBuilder builder = new StringBuilder();
      while (iterator.hasNext())
      {
         AddonId addonId = iterator.next();
         builder.append(addonId.toCoordinates());

         manager.disable(addonId).perform();
         manager.remove(addonId).perform();

         if (iterator.hasNext())
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

   @Test
   public void testFromCoordinates()
   {
      AddonId entry = AddonId.fromCoordinates("org.example:example-addon,1.0.0-SNAPSHOT,2.0.0");
      Assert.assertEquals("org.example:example-addon,1.0.0-SNAPSHOT", entry.toCoordinates());
   }

   @Test
   public void testFromCoordinatesWithVersionRange()
   {
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

   @Test
   public void testFromCoordinatesWithVersionRange()
   {
      AddonId entry = AddonId.fromCoordinates("org.example:example-addon,[1.0.0-SNAPSHOT,2.0.0]");
      Assert.assertEquals("org.example:example-addon,[1.0.0-SNAPSHOT,2.0.0]", entry.toCoordinates());
   }

   @Test
   public void testFromCoordinatesWithVersionRangeAndApiVersion()
   {
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

   @Test
   public void testFromCoordinatesWithVersionRangeAndApiVersion()
   {
      AddonId entry = AddonId.fromCoordinates("org.example:example-addon,[1.0.0-SNAPSHOT,2.0.0],2.6.0.Final");
      Assert.assertEquals("org.example:example-addon,[1.0.0-SNAPSHOT,2.0.0]", entry.toCoordinates());
   }

   @Test(expected = IllegalArgumentException.class)
   public void testFromCoordinatesInvalid()
   {
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

   @Test
   public void testFromIndividual()
   {
      AddonId entry = AddonId.from("org.example:example-addon", "1.0.0-SNAPSHOT", "2.0.0");
      Assert.assertEquals("org.example:example-addon,1.0.0-SNAPSHOT", entry.toCoordinates());
   }

   @Test(expected = IllegalArgumentException.class)
   public void testNoName()
   {
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

            if (Annotations.isAnnotationPresent(deploymentMethod, DeployToRepository.class))
               remoteAddon.setAddonRepository(Annotations.getAnnotation(deploymentMethod, DeployToRepository.class)
                        .value());

            DeploymentDescription deploymentDescription = new DeploymentDescription(id.toCoordinates(), remoteAddon);
            deploymentDescription.shouldBeTestable(false);
            deployments.add(deploymentDescription);
         }

      return deployments;
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

            ForgeRemoteAddon remoteAddon = ShrinkWrap.create(ForgeRemoteAddon.class).setAddonId(id);

            if (Annotations.isAnnotationPresent(deploymentMethod, DeployToRepository.class))
               remoteAddon.setAddonRepository(Annotations.getAnnotation(deploymentMethod, DeployToRepository.class).value());

            DeploymentDescription deploymentDescription = new DeploymentDescription(id.toCoordinates(), remoteAddon);
            deploymentDescription.shouldBeTestable(false);
            deployments.add(deploymentDescription);
         }

      return deployments;
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

      Iterator<AddonId> iterator = value.iterator();
      StringBuilder builder = new StringBuilder();
      while (iterator.hasNext())
      {
         AddonId addonId = iterator.next();
         builder.append(addonId.toCoordinates());

         manager.disable(addonId).perform();
         manager.remove(addonId).perform();

         if (iterator.hasNext())
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId.toCoordinates()

   {
      AddonId addonId = resolveCoordinate(coordinate.getValue());
      try
      {
         addonManager.install(addonId).perform();
         return Results.success("Addon " + addonId.toCoordinates() + " was installed successfully.");
      }
      catch (Throwable t)
      {
         return Results.fail("Addon " + addonId.toCoordinates() + " could not be installed.", t);
      }
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.