Package org.wildfly.prospero.galleon
Class GalleonUtils
- java.lang.Object
-
- org.wildfly.prospero.galleon.GalleonUtils
-
public class GalleonUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGalleonUtils.GalleonExecutionstatic interfaceGalleonUtils.ProvisioningManagerExecution
-
Field Summary
Fields Modifier and Type Field Description static StringJBOSS_BULK_RESOLVE_PROPERTYstatic StringJBOSS_BULK_RESOLVE_VALUEstatic StringJBOSS_FORK_EMBEDDED_PROPERTYstatic StringJBOSS_FORK_EMBEDDED_VALUEprotected static StringJBOSS_MODULES_SETTINGS_XML_URLstatic StringMAVEN_REPO_LOCALstatic StringMODULE_PATH_PROPERTYstatic StringPRINT_ONLY_CONFLICTS_PROPERTYstatic StringPRINT_ONLY_CONFLICTS_VALUEstatic StringSTORE_INPUT_PROVISIONING_CONFIG_PROPERTYstatic StringSTORE_INPUT_PROVISIONING_CONFIG_VALUEstatic StringSTORE_PROVISIONED_ARTIFACTSstatic StringSTORE_PROVISIONED_ARTIFACTS_VALUE
-
Constructor Summary
Constructors Constructor Description GalleonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexecuteGalleon(GalleonUtils.GalleonExecution execution, Path localRepository)static org.jboss.galleon.diff.FsDifffindChanges(Path root)Returns list of files in the installation folder with their status (changed/added/removed)static List<String>getInstalledPacks(Path dir)static org.jboss.galleon.layout.ProvisioningLayoutFactorygetProvisioningLayoutFactory(org.jboss.galleon.universe.maven.repo.MavenRepoManager maven)ProvisioningLayoutFactoryusingmavento resolve artifacts.static org.jboss.galleon.ProvisioningManagergetProvisioningManager(Path installDir, org.jboss.galleon.universe.maven.repo.MavenRepoManager maven, Consumer<String> resolvedFps)static org.jboss.galleon.config.ProvisioningConfigloadProvisioningConfig(InputStream is)static org.jboss.galleon.config.ProvisioningConfigloadProvisioningConfig(URI uri)
-
-
-
Field Detail
-
MAVEN_REPO_LOCAL
public static final String MAVEN_REPO_LOCAL
- See Also:
- Constant Field Values
-
JBOSS_MODULES_SETTINGS_XML_URL
protected static final String JBOSS_MODULES_SETTINGS_XML_URL
- See Also:
- Constant Field Values
-
JBOSS_FORK_EMBEDDED_PROPERTY
public static final String JBOSS_FORK_EMBEDDED_PROPERTY
- See Also:
- Constant Field Values
-
JBOSS_FORK_EMBEDDED_VALUE
public static final String JBOSS_FORK_EMBEDDED_VALUE
- See Also:
- Constant Field Values
-
JBOSS_BULK_RESOLVE_PROPERTY
public static final String JBOSS_BULK_RESOLVE_PROPERTY
- See Also:
- Constant Field Values
-
JBOSS_BULK_RESOLVE_VALUE
public static final String JBOSS_BULK_RESOLVE_VALUE
- See Also:
- Constant Field Values
-
MODULE_PATH_PROPERTY
public static final String MODULE_PATH_PROPERTY
- See Also:
- Constant Field Values
-
PRINT_ONLY_CONFLICTS_PROPERTY
public static final String PRINT_ONLY_CONFLICTS_PROPERTY
- See Also:
- Constant Field Values
-
PRINT_ONLY_CONFLICTS_VALUE
public static final String PRINT_ONLY_CONFLICTS_VALUE
- See Also:
- Constant Field Values
-
STORE_INPUT_PROVISIONING_CONFIG_PROPERTY
public static final String STORE_INPUT_PROVISIONING_CONFIG_PROPERTY
- See Also:
- Constant Field Values
-
STORE_INPUT_PROVISIONING_CONFIG_VALUE
public static final String STORE_INPUT_PROVISIONING_CONFIG_VALUE
- See Also:
- Constant Field Values
-
STORE_PROVISIONED_ARTIFACTS
public static final String STORE_PROVISIONED_ARTIFACTS
- See Also:
- Constant Field Values
-
STORE_PROVISIONED_ARTIFACTS_VALUE
public static final String STORE_PROVISIONED_ARTIFACTS_VALUE
-
-
Method Detail
-
executeGalleon
public static void executeGalleon(GalleonUtils.GalleonExecution execution, Path localRepository) throws org.jboss.galleon.ProvisioningException, org.wildfly.channel.UnresolvedMavenArtifactException
- Throws:
org.jboss.galleon.ProvisioningExceptionorg.wildfly.channel.UnresolvedMavenArtifactException
-
getProvisioningManager
public static org.jboss.galleon.ProvisioningManager getProvisioningManager(Path installDir, org.jboss.galleon.universe.maven.repo.MavenRepoManager maven, Consumer<String> resolvedFps) throws org.jboss.galleon.ProvisioningException
- Throws:
org.jboss.galleon.ProvisioningException
-
getProvisioningLayoutFactory
public static org.jboss.galleon.layout.ProvisioningLayoutFactory getProvisioningLayoutFactory(org.jboss.galleon.universe.maven.repo.MavenRepoManager maven) throws org.jboss.galleon.ProvisioningExceptionProvisioningLayoutFactoryusingmavento resolve artifacts.- Parameters:
maven-- Returns:
- Throws:
org.jboss.galleon.ProvisioningException
-
getInstalledPacks
public static List<String> getInstalledPacks(Path dir) throws org.jboss.galleon.ProvisioningException
- Throws:
org.jboss.galleon.ProvisioningException
-
loadProvisioningConfig
public static org.jboss.galleon.config.ProvisioningConfig loadProvisioningConfig(InputStream is) throws org.jboss.galleon.ProvisioningException, XMLStreamException
- Throws:
org.jboss.galleon.ProvisioningExceptionXMLStreamException
-
loadProvisioningConfig
public static org.jboss.galleon.config.ProvisioningConfig loadProvisioningConfig(URI uri) throws org.jboss.galleon.ProvisioningException, XMLStreamException
- Throws:
org.jboss.galleon.ProvisioningExceptionXMLStreamException
-
findChanges
public static org.jboss.galleon.diff.FsDiff findChanges(Path root) throws org.jboss.galleon.ProvisioningException, OperationException
Returns list of files in the installation folder with their status (changed/added/removed)- Parameters:
root-- Returns:
- Throws:
org.jboss.galleon.ProvisioningExceptionOperationException
-
-