Package org.jboss.galleon.cli.cmd.state
Class StateInfoUtil
- java.lang.Object
-
- org.jboss.galleon.cli.cmd.state.StateInfoUtil
-
public class StateInfoUtil extends java.lang.Object- Author:
- jdenise@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_UNIVERSEstatic java.lang.StringNO_CONFIGURATIONSstatic java.lang.StringNO_DEPENDENCIESstatic java.lang.StringNO_LAYERSstatic java.lang.StringNO_OPTIONAL_PACKAGESstatic java.lang.StringNO_OPTIONSstatic java.lang.StringNO_PATCHESstatic java.lang.StringNO_UNIVERSES
-
Constructor Summary
Constructors Constructor Description StateInfoUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildConfigs(java.util.Map<java.lang.String,java.util.List<ConfigInfo>> configs, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout)static java.lang.StringbuildDependencies(java.util.List<org.jboss.galleon.universe.FeaturePackLocation> dependencies, java.util.Map<org.jboss.galleon.universe.FeaturePackLocation.FPID,org.jboss.galleon.config.FeaturePackConfig> configs)static java.lang.StringbuildLayers(org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout)static java.lang.StringbuildOptionalPackages(PmSession session, FeatureContainer container, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout)static java.lang.StringbuildOptions(ResolvedPlugins plugins)static java.lang.StringbuildPatches(PmCommandInvocation invoc, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> layout)static voiddisplayInfo(PmCommandInvocation invoc, java.nio.file.Path installation, org.jboss.galleon.config.ProvisioningConfig config, java.lang.String type, java.util.function.Function<org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout>,FeatureContainer> supplier)static java.lang.StringformatChannel(org.jboss.galleon.universe.FeaturePackLocation loc)static voidprintContentPath(PmCommandInvocation session, FeatureContainer fp, java.lang.String path)static voidprintFeaturePack(PmCommandInvocation commandInvocation, org.jboss.galleon.universe.FeaturePackLocation loc)
-
-
-
Field Detail
-
DEFAULT_UNIVERSE
public static final java.lang.String DEFAULT_UNIVERSE
- See Also:
- Constant Field Values
-
NO_CONFIGURATIONS
public static final java.lang.String NO_CONFIGURATIONS
- See Also:
- Constant Field Values
-
NO_DEPENDENCIES
public static final java.lang.String NO_DEPENDENCIES
- See Also:
- Constant Field Values
-
NO_LAYERS
public static final java.lang.String NO_LAYERS
- See Also:
- Constant Field Values
-
NO_OPTIONAL_PACKAGES
public static final java.lang.String NO_OPTIONAL_PACKAGES
- See Also:
- Constant Field Values
-
NO_OPTIONS
public static final java.lang.String NO_OPTIONS
- See Also:
- Constant Field Values
-
NO_PATCHES
public static final java.lang.String NO_PATCHES
- See Also:
- Constant Field Values
-
NO_UNIVERSES
public static final java.lang.String NO_UNIVERSES
- See Also:
- Constant Field Values
-
-
Method Detail
-
printContentPath
public static void printContentPath(PmCommandInvocation session, FeatureContainer fp, java.lang.String path) throws org.jboss.galleon.ProvisioningException, PathParserException, PathConsumerException, java.io.IOException
- Throws:
org.jboss.galleon.ProvisioningExceptionPathParserExceptionPathConsumerExceptionjava.io.IOException
-
buildConfigs
public static java.lang.String buildConfigs(java.util.Map<java.lang.String,java.util.List<ConfigInfo>> configs, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout) throws org.jboss.galleon.ProvisioningException, java.io.IOException
- Throws:
org.jboss.galleon.ProvisioningExceptionjava.io.IOException
-
buildOptionalPackages
public static java.lang.String buildOptionalPackages(PmSession session, FeatureContainer container, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout) throws org.jboss.galleon.ProvisioningException, java.io.IOException
- Throws:
org.jboss.galleon.ProvisioningExceptionjava.io.IOException
-
buildLayers
public static java.lang.String buildLayers(org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> pLayout) throws org.jboss.galleon.ProvisioningException, java.io.IOException- Throws:
org.jboss.galleon.ProvisioningExceptionjava.io.IOException
-
buildDependencies
public static java.lang.String buildDependencies(java.util.List<org.jboss.galleon.universe.FeaturePackLocation> dependencies, java.util.Map<org.jboss.galleon.universe.FeaturePackLocation.FPID,org.jboss.galleon.config.FeaturePackConfig> configs)
-
buildPatches
public static java.lang.String buildPatches(PmCommandInvocation invoc, org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout> layout) throws org.jboss.galleon.ProvisioningException
- Throws:
org.jboss.galleon.ProvisioningException
-
printFeaturePack
public static void printFeaturePack(PmCommandInvocation commandInvocation, org.jboss.galleon.universe.FeaturePackLocation loc)
-
buildOptions
public static java.lang.String buildOptions(ResolvedPlugins plugins)
-
formatChannel
public static java.lang.String formatChannel(org.jboss.galleon.universe.FeaturePackLocation loc)
-
displayInfo
public static void displayInfo(PmCommandInvocation invoc, java.nio.file.Path installation, org.jboss.galleon.config.ProvisioningConfig config, java.lang.String type, java.util.function.Function<org.jboss.galleon.layout.ProvisioningLayout<org.jboss.galleon.layout.FeaturePackLayout>,FeatureContainer> supplier) throws CommandExecutionException
- Throws:
CommandExecutionException
-
-