Package net.sf.statcvs.weblinks.bugs
Class BugTracker
java.lang.Object
net.sf.statcvs.weblinks.bugs.BugTracker
A BugTracker generates links to numbered bugs. We use this to turn
bug references in commit log messages (e.g. "Bug #123") into clickable
links.
- Version:
- $Id: BugTracker.java,v 1.9 2009/03/09 21:45:42 benoitx Exp $
- Author:
- Richard Cyganiak (richard@cyganiak.de)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Pattern
static final BugTracker
A null object that can be used in place of a real bug tracker. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bugRegex
-
NO_BUG_TRACKER
A null object that can be used in place of a real bug tracker.
-
-
Constructor Details
-
BugTracker
Creates a new BugTracker instance.- Parameters:
baseURL
- The bug tracker's base URL; a slash is appended if it doesn't end in a slash
-
-
Method Details
-
getName
Returns the name of the bug tracker- Returns:
- the name of the bug tracker
-
baseURL
Returns the bug tracker's base URL.- Returns:
- The bug tracker's base URL
-
bugURL
Returns the URL of the bug tracker page about a certain bug.- Parameters:
bugNumber
- The bug number; one or more digits.- Returns:
- The URL of the bug page
-
toHTMLWithLinks
Filters a String, e.g. a commit message, replacing bug references with links to the tracker.- Parameters:
plainTextInput
- String to examine for bug references- Returns:
- A copy of
input
, with bug references replaced with HTML links
-