org.apache.maven.plugin.issues
Class IssueUtils
java.lang.Object
org.apache.maven.plugin.issues.IssueUtils
public class IssueUtils
- extends Object
A utility class for working with issue objects.
- Since:
- 2.4
- Version:
- $Id: IssueUtils.java 1579078 2014-03-18 22:44:41Z dennisl $
- Author:
- Dennis Lundberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SNAPSHOT_SUFFIX
public static final String SNAPSHOT_SUFFIX
- See Also:
- Constant Field Values
IssueUtils
public IssueUtils()
filterIssuesWithVersionPrefix
public static List<Issue> filterIssuesWithVersionPrefix(List<Issue> issues,
String prefix)
throws 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:
MojoExecutionException
- If no issues could be found for the supplied prefix
getIssuesForVersion
public static List<Issue> getIssuesForVersion(List<Issue> issues,
String version)
throws MojoExecutionException
- Find the issues for only 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
- Throws:
MojoExecutionException
- If no issues could be found for the supplied version
toString
public static String toString(List<Issue> issues)
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.