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("1.1");
   }
View Full Code Here

   }

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

   {
      String version = AddonRepository.class.getPackage()
               .getImplementationVersion();
      if (version != null)
      {
         return new SingleVersion(version);
      }
      return EmptyVersion.getInstance();
   }
View Full Code Here

   {
      Coordinate c = CoordinateBuilder.create().setGroupId("org.jboss.forge.furnace").setArtifactId("furnace");
      List<Version> versions = new ArrayList<Version>();
      for (Coordinate versionCoord : dependencyResolver.resolveVersions(DependencyQueryBuilder.create(c)))
      {
         versions.add(new SingleVersion(versionCoord.getVersion()));
      }
      forgeVersion.setValueChoices(versions);
      forgeVersion.setDefaultValue(forge.getVersion());
   }
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

      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

      AddonVertex result = null;
      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 = vertex;
            break;
         }
      }
View Full Code Here

   {
      String version = AddonRepository.class.getPackage()
               .getImplementationVersion();
      if (version != null)
      {
         return new SingleVersion(version);
      }
      return EmptyVersion.getInstance();
   }
View Full Code Here

   {
      String version = AddonRepository.class.getPackage()
               .getImplementationVersion();
      if (version != null)
      {
         return new SingleVersion(version);
      }
      return EmptyVersion.getInstance();
   }
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.