public class ReleaseUtils extends Object
| Constructor and Description |
|---|
ReleaseUtils(Log log) |
| Modifier and Type | Method and Description |
|---|---|
List<Release> |
convertReleaseList(List<Release> 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<Release> |
mergeReleases(List<Release> releases,
String componentName,
List<Release> componentReleases)
Merge releases from parent component with releases from child component.
|
static String |
toString(List<Release> releases) |
public ReleaseUtils(Log log)
public Release getLatestRelease(List<Release> releases, String pomVersion) throws MojoExecutionException
releases - list of releasespomVersion - Version of the artifactRelease that matches the next release of the current projectMojoExecutionException - 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<Release> changesReleases)
changesReleases - An untyped List of Release objectspublic List<Release> mergeReleases(List<Release> releases, String componentName, List<Release> componentReleases)
releases - Releases from the parent componentcomponentName - child component name (retrieved from project name)componentReleases - Releases from the child componentCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.