org.apache.maven.changes
Class IssueFinder

java.lang.Object
  extended byorg.apache.maven.changes.IssueFinder

public class IssueFinder
extends Object

Version:
$Id: IssueFinder.java 434563 2006-08-24 23:32:54Z ltheussl $
Author:
Vincent Massol

Constructor Summary
IssueFinder()
           
 
Method Summary
static String getIssueURL(String trackerURL, String issue, String template)
           
static String replace(String original, String oldPattern, String newPattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueFinder

public IssueFinder()
Method Detail

getIssueURL

public static String getIssueURL(String trackerURL,
                                 String issue,
                                 String template)
Parameters:
trackerURL - the issue tracker URL (this is supposed to be the value of <issueTrackingUrl> found in the POM.
issue - the issue reference
template - the template string. Allowed template patterns are %URL% and %ISSUE%. They will be replaced by the base tracker URL extracted from trackerURL and by the issue reference.
Returns:
The URL of the issue.

replace

public static final String replace(String original,
                                   String oldPattern,
                                   String newPattern)
Parameters:
original - the original template
oldPattern - the pattern to replace
newPattern - the new pattern
Returns:
the modified template string with patterns applied


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.