public class ConfigUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
MVN_PROP_ARTIFACT_ID
Maven Artifact ID property name.
|
private static String |
MVN_PROP_GROUP_ID
Maven Group ID property name.
|
private static String |
MVN_PROP_VERSION
Maven Version property name.
|
private static Pattern |
MVN_PROPS_PATTERN |
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
private static List<Pattern> |
compilePatterns(List<String> names)
Compile pattern
String s. |
private static FilenameFilter |
createFilter(List<Pattern> patterns)
Creates file name filter from
List
of |
(package private) static URL |
fileToURL(File file)
|
private static GlassFishLibrary.Maven |
getMvnInfoFromProperties(InputStream propStream)
Process
pom.properties content to retrieve Maven information
from JAR. |
(package private) static List<GlassFishLibrary.Maven> |
processClassPath(List<File> classpath)
Search class path for Maven information.
|
(package private) static List<File> |
processFileset(FileSet fileset,
String rootDir)
|
(package private) static List<URL> |
processLinks(FileSet fileset)
|
private static final String MVN_PROP_GROUP_ID
private static final String MVN_PROP_ARTIFACT_ID
private static final String MVN_PROP_VERSION
private static final Pattern MVN_PROPS_PATTERN
static List<URL> processLinks(FileSet fileset)
fileset
- Library node.List
of URL
s from library node.static List<File> processFileset(FileSet fileset, String rootDir) throws FileNotFoundException
fileset
- Library node.rootDir
- File system search root.List
of File
s from library node.FileNotFoundException
- When file from paths element was not found.static List<GlassFishLibrary.Maven> processClassPath(List<File> classpath)
classpath
- List of class path JAR files.private static GlassFishLibrary.Maven getMvnInfoFromProperties(InputStream propStream) throws IOException
pom.properties
content to retrieve Maven information
from JAR.
propStream
- Input stream to read pom.properties
file from JAR.IOException
private static FilenameFilter createFilter(List<Pattern> patterns)
List
of patterns
- List
of Copyright © 2013. All Rights Reserved.