public final class DependsFileParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILDTIME_KEY
The key where the build time as found within the dependencies.properties file is found.
|
static String |
OWN_ARTIFACTID_KEY
The key holding the artifactId of this plugin (within the dependencies.properties file).
|
static String |
OWN_GROUPID_KEY
The key holding the groupId of this plugin (within the dependencies.properties file).
|
static String |
OWN_VERSION_KEY
The key holding the version of this plugin (within the dependencies.properties file).
|
| Modifier and Type | Method and Description |
|---|---|
static SortedMap<String,DependencyInfo> |
createDependencyInfoMap(SortedMap<String,String> versionMap)
Converts a SortedMap received from a
getVersionMap call to hold DependencyInfo values,
and keys on the form groupId/artifactId. |
static SortedMap<String,String> |
getVersionMap(String artifactId)
Extracts all build-time dependency information from a dependencies.properties file
embedded in this plugin's JAR.
|
static SortedMap<String,String> |
getVersionMap(URL anURL)
Extracts all build-time dependency information from a dependencies.properties file
embedded in this plugin's JAR.
|
public static final String BUILDTIME_KEY
public static final String OWN_ARTIFACTID_KEY
public static final String OWN_GROUPID_KEY
public static final String OWN_VERSION_KEY
public static SortedMap<String,String> getVersionMap(String artifactId)
artifactId - This plugin's artifactId.IllegalStateException - if no artifact in the current Thread's context ClassLoader
contained the supplied artifactNamePart.public static SortedMap<String,String> getVersionMap(URL anURL)
anURL - The non-empty URL to a dependencies.properties file.buildtime key.IllegalStateException - if no artifact in the current Thread's context ClassLoader
contained the supplied artifactNamePart.public static SortedMap<String,DependencyInfo> createDependencyInfoMap(SortedMap<String,String> versionMap)
getVersionMap call to hold DependencyInfo values,
and keys on the form groupId/artifactId.versionMap - A non-null Map, as received from a call to getVersionMap.getVersionMap call to hold DependencyInfo values,
and keys on the form groupId/artifactId.Copyright © 2005–2016 MojoHaus. All rights reserved.