Package org.jboss.forge.furnace.versions

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


   {
      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


         {
            id = originalAddonId;
         }
         else
         {
            id = AddonId.from(originalAddonId.getName(), originalAddonId.getVersion(), new SingleVersion(apiVersion));
         }
      }
      else
      {
         id = originalAddonId;
View Full Code Here

   @SuppressWarnings("rawtypes")
   public PersistenceUnitCommon configure(PersistenceUnitCommon unit, JPADataSource ds)
   {
      unit.excludeUnlistedClasses(Boolean.FALSE);
      PersistenceCommonDescriptor descriptor = (PersistenceCommonDescriptor) unit.up();
      if (new SingleVersion(descriptor.getVersion()).compareTo(new SingleVersion("2.1")) >= 0)
      {
         PropertiesCommon properties = unit.getOrCreateProperties();
         properties.createProperty().name("javax.persistence.schema-generation.database.action").value("create");
         properties.createProperty().name("javax.persistence.schema-generation.scripts.action")
                  .value("drop-and-create");
View Full Code Here

            .create("org.jboss.spec.javax.faces:jboss-jsf-api_2.0_spec").setScopeType("provided");

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

            .create("javax.faces:javax.faces-api:2.2").setScopeType("provided");

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

            .create("org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec").setScopeType("provided");

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

   }

   @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

         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

   }

   @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.