public class ReleaseUtils extends Object
| Constructor and Description |
|---|
ReleaseUtils(org.apache.maven.plugin.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
List<Release> |
convertReleaseList(List changesReleases)
Convert an untyped List of Release objects that comes from changes.xml
into a typed List of Release objects.
|
Release |
getLatestRelease(List<Release> releases,
String pomVersion)
Get the latest release by matching the supplied releases
with the version from the pom.
|
protected Release |
getRelease(List<Release> releases,
String version)
Get a release with the specified version from the list of releases.
|
protected void |
logRelease(Release release) |
List<Release> |
mergeReleases(List<Release> firstReleases,
List<Release> secondReleases)
Merge releases from one issue tracker with releases from another issue
tracker.
|
List |
mergeReleases(List releases,
String componentName,
List componentReleases)
Merge releases from parent component with releases from child component.
|
public Release getLatestRelease(List<Release> releases, String pomVersion) throws org.apache.maven.plugin.MojoExecutionException
releases - list of releasespomVersion - Version of the artifactRelease that matches the next release of the current projectorg.apache.maven.plugin.MojoExecutionException - If a release can't be foundprotected Release getRelease(List<Release> releases, String version)
releases - A list of releasesversion - The version we wantprotected void logRelease(Release release)
public List<Release> mergeReleases(List<Release> firstReleases, List<Release> secondReleases)
firstReleases - Releases from the first issue trackersecondReleases - Releases from the second issue trackerpublic List<Release> convertReleaseList(List changesReleases)
changesReleases - An untyped List of Release objectspublic List mergeReleases(List releases, String componentName, List componentReleases)
releases - Releases from the parent componentcomponentName - child component name (retrieved from project name)componentReleases - Releases from the child componentCopyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.