Package org.jboss.forge.furnace.versions

Examples of org.jboss.forge.furnace.versions.Version


      }
   }

   private void install(String addonCoordinates)
   {
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();
      try
      {
         AddonDependencyResolver resolver = new MavenAddonDependencyResolver();
         AddonManagerImpl addonManager = new AddonManagerImpl(furnace, resolver);
View Full Code Here


   }

   // TODO this method needs to be abstracted into a utility
   private AddonId resolveCoordinate(String addonCoordinates) throws IllegalArgumentException
   {
      Version runtimeAPIVersion = furnace.getVersion();
      AddonId addon;
      // This allows forge --install maven
      if (addonCoordinates.contains(","))
      {
         if (addonCoordinates.contains(":"))
View Full Code Here

   Furnace furnace;

   @Command(value = "version", help = "Displays the current Forge version.", enabledHandler = NonGUIEnabledHandler.class)
   public void showVersion(final UIOutput output)
   {
      Version version = furnace.getVersion();
      output.out().println(
               "JBoss Forge, version [ " + version + " ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]");
   }
View Full Code Here

   private ModuleIdentifier findCompatibleInstalledModule(AddonId addonId)
   {
      ModuleIdentifier result = null;

      Addon addon = currentAddon.get();
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();

      AddonRepository repository = stateManager.getViewsOf(addon).iterator().next().getRepositories().iterator().next();
      List<AddonId> enabled = repository.listEnabledCompatibleWithVersion(runtimeAPIVersion);
      for (AddonId id : enabled)
      {
View Full Code Here

   Furnace furnace;

   @Command(value = "version", help = "Displays the current Forge version.", enabled = NonGUIEnabledPredicate.class)
   public void showVersion(final UIOutput output)
   {
      Version version = furnace.getVersion();
      output.out().println(
               "JBoss Forge, version [ " + version + " ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]");
   }
View Full Code Here

   private ModuleIdentifier findCompatibleInstalledModule(AddonId addonId)
   {
      ModuleIdentifier result = null;

      Addon addon = currentAddon.get();
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();

      for (AddonRepository repository : stateManager.getViewsOf(addon).iterator().next().getRepositories())
      {
         List<AddonId> enabled = repository.listEnabledCompatibleWithVersion(runtimeAPIVersion);
         for (AddonId id : enabled)
View Full Code Here

   private ModuleIdentifier findCompatibleInstalledModule(AddonId addonId)
   {
      ModuleIdentifier result = null;

      Addon addon = currentAddon.get();
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();

      for (AddonRepository repository : stateManager.getViewsOf(addon).iterator().next().getRepositories())
      {
         List<AddonId> enabled = repository.listEnabledCompatibleWithVersion(runtimeAPIVersion);
         for (AddonId id : enabled)
View Full Code Here

      }
   }

   private void install(String addonCoordinates)
   {
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();
      try
      {
         AddonDependencyResolver resolver = new MavenAddonDependencyResolver();
         AddonManagerImpl addonManager = new AddonManagerImpl(furnace, resolver);
View Full Code Here

      Set<AddonVertex> result = new HashSet<AddonVertex>();
      for (AddonVertex vertex : getGraph().vertexSet())
      {
         String vertexName = vertex.getName();
         // FIXME some weird CLAC javassist issue requiring this unwrapping?
         Version vertexVersion = new SingleVersion(vertex.getVersion().toString());
         if (vertexName.equals(name)
                  && new SingleVersion(version.toString())
                           .compareTo(new SingleVersion(vertexVersion.toString())) == 0)
         {
            result.add(vertex);
         }
      }
      return result;
View Full Code Here

   private ModuleIdentifier findCompatibleInstalledModule(AddonId addonId)
   {
      ModuleIdentifier result = null;

      Addon addon = currentAddon.get();
      Version runtimeAPIVersion = AddonRepositoryImpl.getRuntimeAPIVersion();

      for (AddonRepository repository : stateManager.getViewsOf(addon).iterator().next().getRepositories())
      {
         List<AddonId> enabled = repository.listEnabledCompatibleWithVersion(runtimeAPIVersion);
         for (AddonId id : enabled)
View Full Code Here

TOP

Related Classes of org.jboss.forge.furnace.versions.Version

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.