org.apache.maven.plugin.issues
Class IssueUtils

java.lang.Object
  extended by org.apache.maven.plugin.issues.IssueUtils

public class IssueUtils
extends java.lang.Object

A utility class for working with issue objects.

Since:
2.4
Version:
$Id: IssueUtils.java 1060049 2011-01-17 19:20:41Z dennisl $
Author:
Dennis Lundberg

Field Summary
static java.lang.String SNAPSHOT_SUFFIX
           
 
Constructor Summary
IssueUtils()
           
 
Method Summary
static java.util.List filterIssuesWithVersionPrefix(java.util.List issues, java.lang.String prefix)
          Find the issues that has a Fix Version that matches the supplied prefix.
static java.util.List getIssuesForVersion(java.util.List issues, java.lang.String version)
          Find the issues for only the supplied version, by matching the "Fix for" version in the supplied list of issues with the supplied version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SNAPSHOT_SUFFIX

public static final java.lang.String SNAPSHOT_SUFFIX
See Also:
Constant Field Values
Constructor Detail

IssueUtils

public IssueUtils()
Method Detail

filterIssuesWithVersionPrefix

public static java.util.List filterIssuesWithVersionPrefix(java.util.List issues,
                                                           java.lang.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 issues
prefix - 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

public static java.util.List getIssuesForVersion(java.util.List issues,
                                                 java.lang.String version)
                                          throws org.apache.maven.plugin.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 issues
version - The version that issues should be returned for
Returns:
A List of issues for the supplied version
Throws:
org.apache.maven.plugin.MojoExecutionException - If no issues could be found for the supplied version


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.