public class FileNameUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isDeployedPom(String path)
Returns whether or not the provided path points to a .pom file.
|
static boolean |
isJar(String fileName)
Is the file a JAR file.
|
static boolean |
isKJar(String fileName)
Is the file a KJAR file.
|
static boolean |
isPom(String fileName)
Is the file a pom.xml file
|
static boolean |
isValid(String fileName)
Is the file valid; i.e. either a JAR, KJAR or pom.xml file.
|
public static boolean isValid(String fileName)
fileName
- public static boolean isJar(String fileName)
fileName
- public static boolean isKJar(String fileName)
fileName
- public static boolean isPom(String fileName)
fileName
- public static boolean isDeployedPom(String path)
path
- path to the fileCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.