Package org.jboss.forge.furnace.versions

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


   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("1.0");
   }
View Full Code Here


   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("2.2");
   }
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("1.1");
   }
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("1.2");
   }
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("2.5");
   }
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("3.0");
   }
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("3.1");
   }
View Full Code Here

         throw new IllegalArgumentException("Version cannot be empty.");

      AddonId id = new AddonId();

      id.name = name;
      id.version = new SingleVersion(version);
      if (apiVersion == null || apiVersion.trim().isEmpty())
         id.apiVersion = EmptyVersion.getInstance();
      else
         id.apiVersion = new SingleVersion(apiVersion);

      return id;

   }
View Full Code Here

            AddonId selected = null;
            for (int i = versions.length - 1; selected == null && i >= 0; i--)
            {
               String apiVersion = resolver.resolveAPIVersion(versions[i]).get();
               if (apiVersion != null
                        && Versions.isApiCompatible(runtimeAPIVersion, new SingleVersion(apiVersion)))
               {
                  selected = versions[i];
               }
            }
            if (selected == null)
View Full Code Here

   }

   @Override
   public Version getSpecVersion()
   {
      return new SingleVersion("7");
   }
View Full Code Here

TOP

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

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.