Class IssueUtils
java.lang.Object
org.apache.maven.plugins.changes.issues.IssueUtils
A utility class for working with issue objects.
- Since:
- 2.4
- Version:
- $Id$
- Author:
- Dennis Lundberg
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterIssuesWithVersionPrefix
(List<Issue> issues, String prefix) Find the issues that has a Fix Version that matches the supplied prefix.getIssuesForVersion
(List<Issue> issues, String version) Find the issues for the supplied version, by matching the "Fix for" version in the supplied list of issues with the supplied version.static String
-
Field Details
-
SNAPSHOT_SUFFIX
- See Also:
-
-
Constructor Details
-
IssueUtils
public IssueUtils()
-
-
Method Details
-
filterIssuesWithVersionPrefix
public static List<Issue> filterIssuesWithVersionPrefix(List<Issue> issues, String prefix) throws org.apache.maven.plugin.MojoExecutionException Find the issues that has a Fix Version that matches the supplied prefix.- Parameters:
issues
- A list of issuesprefix
- The prefix of the "Fix Version" that should match- Returns:
- A
List
of issues fixed in versions that match the supplied prefix - Throws:
org.apache.maven.plugin.MojoExecutionException
- If no issues could be found for the supplied prefix
-
getIssuesForVersion
Find the issues for the supplied version, by matching the "Fix for" version in the supplied list of issues with the supplied version. If the supplied version is a SNAPSHOT, then that part of the version will be removed prior to the matching.- Parameters:
issues
- a list of issuesversion
- the version that issues should be returned for- Returns:
- a
List
of issues for the supplied version, possibly empty if there are no issues
-
toString
-