Package org.wildfly.plugin.common
Class Utils
java.lang.Object
org.wildfly.plugin.common.Utils
A simple utility class.
- Author:
- James R. Perkins
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Tests if the character sequence is notnull
and not empty.static boolean
isNotNullOrEmpty
(Object[] array) Tests if the arrays is notnull
and not empty.static org.wildfly.glow.ScanResults
scanDeployment
(GlowConfig discoverProvisioningInfo, List<String> layers, List<String> excludedLayers, List<org.jboss.galleon.api.GalleonFeaturePack> featurePacks, boolean dryRun, org.apache.maven.plugin.logging.Log log, List<Path> deploymentContents, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver, Path outputFolder, org.jboss.galleon.api.GalleonBuilder pm, Map<String, String> galleonOptions, String layersConfigurationFileName) splitArguments
(CharSequence arguments) Splits the arguments into a list.static String
toString
(Iterable<?> iterable, CharSequence delimiter) Converts an iterable to a delimited string.
-
Field Details
-
WILDFLY_DEFAULT_DIR
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
isNotNullOrEmpty
Tests if the character sequence is notnull
and not empty.- Parameters:
seq
- the character sequence to test- Returns:
true
if the character sequence is notnull
and not empty
-
isNotNullOrEmpty
Tests if the arrays is notnull
and not empty.- Parameters:
array
- the array to test- Returns:
true
if the array is notnull
and not empty
-
toString
Converts an iterable to a delimited string.- Parameters:
iterable
- the iterable to convertdelimiter
- the delimiter- Returns:
- a delimited string of the iterable
-
splitArguments
Splits the arguments into a list. The arguments are split based on whitespace while ignoring whitespace that is within quotes.- Parameters:
arguments
- the arguments to split- Returns:
- the list of the arguments
-
scanDeployment
public static org.wildfly.glow.ScanResults scanDeployment(GlowConfig discoverProvisioningInfo, List<String> layers, List<String> excludedLayers, List<org.jboss.galleon.api.GalleonFeaturePack> featurePacks, boolean dryRun, org.apache.maven.plugin.logging.Log log, List<Path> deploymentContents, org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver, Path outputFolder, org.jboss.galleon.api.GalleonBuilder pm, Map<String, String> galleonOptions, String layersConfigurationFileName) throws Exception- Throws:
Exception
-