Class GalleonUtils


  • public class GalleonUtils
    extends Object
    Author:
    jdenise
    • Constructor Detail

      • GalleonUtils

        public GalleonUtils()
    • Method Detail

      • provision

        public static void provision​(Path jbossHome,
                                     String featurePackLocation,
                                     String version,
                                     org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver)
                              throws org.jboss.galleon.ProvisioningException
        Galleon provisioning of a default server.
        Parameters:
        jbossHome - Server installation directory
        featurePackLocation - the location of the feature pack
        version - WildFly version, if null latest is used.
        artifactResolver - Artifact resolver used by Galleon
        Throws:
        org.jboss.galleon.ProvisioningException - if there is an error provisioning the server
      • buildDefaultConfig

        public static org.jboss.galleon.config.ProvisioningConfig buildDefaultConfig()
                                                                              throws org.jboss.galleon.ProvisioningDescriptionException
        Build a default WildFly provisioning config.
        Returns:
        Throws:
        org.jboss.galleon.ProvisioningDescriptionException
      • buildDefaultConfig

        public static org.jboss.galleon.config.ProvisioningConfig buildDefaultConfig​(String featurePackLocation,
                                                                                     String version)
                                                                              throws org.jboss.galleon.ProvisioningDescriptionException
        Build a default WildFly provisioning config.
        Parameters:
        version - WildFly version, if null latest is used.
        Returns:
        Throws:
        org.jboss.galleon.ProvisioningDescriptionException
      • buildConfig

        public static org.jboss.galleon.config.ProvisioningConfig buildConfig​(Path provisioningFile)
                                                                       throws org.jboss.galleon.ProvisioningException
        Build a Galleon provisioning configuration based on a provisioning.xml file.
        Parameters:
        provisioningFile -
        Returns:
        The provisioning config.
        Throws:
        org.jboss.galleon.ProvisioningException
      • buildConfig

        public static org.jboss.galleon.config.ProvisioningConfig buildConfig​(org.jboss.galleon.ProvisioningManager pm,
                                                                              List<FeaturePack> featurePacks,
                                                                              List<String> layers,
                                                                              List<String> excludedLayers,
                                                                              Map<String,​String> pluginOptions,
                                                                              String layersConfigFileName)
                                                                       throws org.jboss.galleon.ProvisioningException,
                                                                              IllegalArgumentException
        Build a Galleon provisioning configuration.
        Parameters:
        pm - The Galleon provisioning runtime.
        featurePacks - The list of feature-packs.
        layers - Layers to include.
        excludedLayers - Layers to exclude.
        pluginOptions - Galleon plugin options.
        layersConfigFileName - The name of the configuration generated from layers
        Returns:
        The provisioning config.
        Throws:
        org.jboss.galleon.ProvisioningException
        IllegalArgumentException