Package org.wildfly.prospero.actions
Class ProvisioningAction
java.lang.Object
org.wildfly.prospero.actions.ProvisioningAction
-
Constructor Summary
ConstructorsConstructorDescriptionProvisioningAction(Path installDir, MavenOptions mvnOptions, Console console) -
Method Summary
Modifier and TypeMethodDescriptiongetPendingLicenses(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) List agreements and licenses that need to be accepted before installing the required Feature Packs.voidprovision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) Provision installation according to given ProvisioningDefinition.voidprovision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels, List<org.wildfly.channel.Repository> overwriteRepositories) Provision installation according to given ProvisioningDefinition.
-
Constructor Details
-
ProvisioningAction
public ProvisioningAction(Path installDir, MavenOptions mvnOptions, Console console) throws org.jboss.galleon.ProvisioningException - Throws:
org.jboss.galleon.ProvisioningException
-
-
Method Details
-
provision
public void provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) throws MalformedURLException, org.jboss.galleon.ProvisioningException, OperationException Provision installation according to given ProvisioningDefinition. NOTE: All required licenses are assumed to be accepted by calling this method.- Parameters:
provisioningConfig- prospero provisioning definitionchannels- list of channels to resolve installed artifacts- Throws:
MalformedURLExceptionorg.jboss.galleon.ProvisioningExceptionOperationException
-
provision
public void provision(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels, List<org.wildfly.channel.Repository> overwriteRepositories) throws org.jboss.galleon.ProvisioningException, OperationException, MalformedURLException Provision installation according to given ProvisioningDefinition. TheoverrideRepositoriesreplace any repositories defined inchannelsfor duration of this operation. They are not persisted in the provisioned configuration. NOTE: All required licenses are assumed to be accepted by calling this method.- Parameters:
provisioningConfig- prospero provisioning definitionchannels- list of channels to resolve installed artifactsoverwriteRepositories- list of repositories to resolve installed artifacts from. They do not alter persisted channel definitions.- Throws:
org.jboss.galleon.ProvisioningExceptionOperationExceptionMalformedURLException
-
getPendingLicenses
public List<License> getPendingLicenses(org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels) throws OperationException List agreements and licenses that need to be accepted before installing the required Feature Packs.- Parameters:
provisioningConfig- - list of Feature Packs being installedchannels- - list of channels used to resolve the Feature Packs- Returns:
- - list of
License, or empty list if no licenses were required - Throws:
OperationException
-