hudson.scm.browsers
Class ViewCVS
java.lang.Object
hudson.scm.RepositoryBrowser<CVSChangeLogSet.CVSChangeLog>
hudson.scm.CVSRepositoryBrowser
hudson.scm.browsers.ViewCVS
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable
public final class ViewCVS
- extends CVSRepositoryBrowser
RepositoryBrowser for CVS.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Field Summary |
java.net.URL |
url
The URL of the top of the site. |
|
Constructor Summary |
ViewCVS(java.net.URL url)
|
| Methods inherited from class hudson.scm.RepositoryBrowser |
all, getDescriptor, normalizeToEndWithSlash, trimHeadSlash |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
public final java.net.URL url
- The URL of the top of the site.
Normalized to ends with '/', like http://isscvs.cern.ch/cgi-bin/viewcvs-all.cgi/
It may contain a query parameter like ?cvsroot=foobar, so relative URL
construction needs to be done with care.
ViewCVS
@DataBoundConstructor
public ViewCVS(java.net.URL url)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getFileLink
public java.net.URL getFileLink(CVSChangeLogSet.File file)
throws java.io.IOException
- Description copied from class:
CVSRepositoryBrowser
- Determines the link to a single file under CVS.
This page should display all the past revisions of this file, etc.
- Specified by:
getFileLink in class CVSRepositoryBrowser
- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
java.io.IOException
getDiffLink
public java.net.URL getDiffLink(CVSChangeLogSet.File file)
throws java.io.IOException
- Description copied from class:
CVSRepositoryBrowser
- Determines the link to the diff between the version
in the
CVSChangeLogSet.File to its previous version.
- Specified by:
getDiffLink in class CVSRepositoryBrowser
- Returns:
- null if the browser doesn't have any URL for diff.
- Throws:
java.io.IOException
getChangeSetLink
public java.net.URL getChangeSetLink(CVSChangeLogSet.CVSChangeLog changeSet)
throws java.io.IOException
- No changeset support in ViewCVS.
- Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<CVSChangeLogSet.CVSChangeLog>
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.