public class ReleaseRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASELIB_ARTIFACT_ID |
static String |
BASELIB_GROUP_ID |
static String |
BUNDLE_ARTIFACT_ID |
static ReleaseRepository |
INSTANCE
The instance of the repository
|
| Constructor and Description |
|---|
ReleaseRepository()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBuildProperties(InputStream in)
Add properties from given stream and parse
release information with given prefix.
|
boolean |
addBuildProperties(URL url)
Add properties from given URL and parse
release information with given prefix.
|
boolean |
addPomProperties(InputStream in)
Add properties from given stream and parse
release information with given prefix.
|
boolean |
addPomProperties(URL url)
Add properties from given URL and parse
release information with given prefix.
|
boolean |
addProperties(File file)
Add properties from given File and parse
release information with given prefix.
|
ReleaseInformation |
addReleaseInformation(Properties props)
Parse release information in repository using the given properties.
|
boolean |
addReleaseInformation(ReleaseInformation info)
Add the given information to the repository.
|
ReleaseInformation |
addReleaseInformation(String groupId,
String artifactId,
String version,
String name)
Add release information in repository using the given properties.
|
void |
dumpArtifacts()
Dumps all release information own log in INFO level.
|
void |
dumpArtifacts(Logger log,
LogLevel logLevel)
Dumps all release information to a log.
|
void |
dumpArtifacts(LogLevel logLevel)
Dumps all release information to own log.
|
void |
dumpArtifacts(Writer writer)
Dumps all release information into the writer.
|
Collection<ReleaseInformation> |
getAllInfos()
Returns all artifacts.
|
Collection<ReleaseInformation> |
getArtifactInfos(String groupId)
Returns all artifact versions.
|
Collection<String> |
getArtifacts(String groupId)
Returns all artifact IDs of a group.
|
Collection<String> |
getGroups()
Returns all group IDs.
|
ReleaseInformation |
getReleaseInformation(String groupId,
String artifactId,
String version)
Returns the information for the given artifact.
|
Collection<ReleaseInformation> |
getVersionInfos(String groupId,
String artifactId)
Returns all artifact versions.
|
Collection<String> |
getVersions(String groupId,
String artifactId)
Returns all versions of an artifact.
|
public static ReleaseRepository INSTANCE
public static final String BASELIB_GROUP_ID
public static final String BASELIB_ARTIFACT_ID
public static final String BUNDLE_ARTIFACT_ID
public boolean addProperties(File file) throws IOException
file - file load fromIOException - when the stream cannot be read.public boolean addBuildProperties(URL url) throws IOException
url - url to load fromIOException - when the stream cannot be read.public boolean addBuildProperties(InputStream in) throws IOException
in - streamIOException - when the stream cannot be read.public boolean addPomProperties(URL url) throws IOException
url - url to load fromIOException - when the stream cannot be read.public boolean addPomProperties(InputStream in) throws IOException
in - streamIOException - when the stream cannot be read.public ReleaseInformation addReleaseInformation(String groupId, String artifactId, String version, String name)
groupId - group ID of releaseartifactId - artifact ID of releaseversion - version of releasename - name of releasepublic ReleaseInformation addReleaseInformation(Properties props)
props - the properties to be parsedpublic boolean addReleaseInformation(ReleaseInformation info)
info - info to be added.public Collection<String> getGroups()
public ReleaseInformation getReleaseInformation(String groupId, String artifactId, String version)
groupId - group IDartifactId - artifact IDversion - versionpublic Collection<ReleaseInformation> getAllInfos()
public Collection<ReleaseInformation> getArtifactInfos(String groupId)
public Collection<ReleaseInformation> getVersionInfos(String groupId, String artifactId)
public Collection<String> getArtifacts(String groupId)
groupId - group ID to returnpublic Collection<String> getVersions(String groupId, String artifactId)
groupId - group ID to returnartifactId - artifact ID to returnpublic void dumpArtifacts()
public void dumpArtifacts(LogLevel logLevel)
logLevel - the log level to be usedpublic void dumpArtifacts(Logger log, LogLevel logLevel)
log - the logger to be usedlogLevel - the log level to be usedpublic void dumpArtifacts(Writer writer) throws IOException
writer - the writer where to dump toIOException - if I/O exception occursCopyright © 2014. All rights reserved.