Package org.wildfly.prospero.galleon
Class GalleonFeaturePackAnalyzer
java.lang.Object
org.wildfly.prospero.galleon.GalleonFeaturePackAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionGalleonFeaturePackAnalyzer(List<org.wildfly.channel.Channel> channels, MavenSessionManager mavenSessionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheGalleonArtifacts(Path installedDir, org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig) Analyzes provisioning information found ininstalledDirand cachesFeaturePackand Galleon plugin artifacts.getFeaturePacks(Path installedDir, org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig) lists maven coordinates (groupId:artifactId) of FeaturePacks included in theprovisioningConfig.
-
Constructor Details
-
GalleonFeaturePackAnalyzer
public GalleonFeaturePackAnalyzer(List<org.wildfly.channel.Channel> channels, MavenSessionManager mavenSessionManager)
-
-
Method Details
-
cacheGalleonArtifacts
public void cacheGalleonArtifacts(Path installedDir, org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig) throws Exception Analyzes provisioning information found ininstalledDirand cachesFeaturePackand Galleon plugin artifacts. This complements caching done in Wildfly Galleon Plugin}, as Galleon plugin is not able to access FeaturePack information. The discovered artifacts are cached usingArtifactCache.- Parameters:
installedDir- - path to the installation. Used to access the cacheprovisioningConfig- - Galleon configuration to analyze- Throws:
Exception
-
getFeaturePacks
public Set<String> getFeaturePacks(Path installedDir, org.jboss.galleon.api.config.GalleonProvisioningConfig provisioningConfig) throws IOException, org.jboss.galleon.ProvisioningException, OperationException lists maven coordinates (groupId:artifactId) of FeaturePacks included in theprovisioningConfig. Includes transitive dependencies.- Parameters:
installedDir- - path to the installation. Used to access the cacheprovisioningConfig- - provisioning config to analyze- Returns:
- Throws:
IOExceptionorg.jboss.galleon.ProvisioningExceptionOperationException
-