public final class EjbHelper extends Object
EjbMojo
.
Think about this helper class, cause i've got the impression this can be made better.
Modifier and Type | Method and Description |
---|---|
static File |
getJarFile(File basedir,
String finalName,
String classifier)
Returns the Jar file to generate, based on an optional classifier.
|
static boolean |
hasClassifier(String classifier)
Check if the given classifier exists in the meaning of not being
null and contain something else than
only white spaces. |
static boolean |
isClassifierValid(String classifier)
Check if a
classifier is valid or not. |
public static boolean isClassifierValid(String classifier)
classifier
is valid or not.classifier
- The classifier which should be checked.classifier
false otherwise which includes the case where
classifier
is null
.public static boolean hasClassifier(String classifier)
null
and contain something else than
only white spaces.classifier
- The classifier to be used.null
and contains something else than white spaces.public static File getJarFile(File basedir, String finalName, String classifier)
basedir
- the output directoryfinalName
- the name of the ear fileclassifier
- an optional classifierCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.