org.jvnet.hudson.test
Class SingleFileSCM
java.lang.Object
hudson.scm.SCM
hudson.scm.NullSCM
org.jvnet.hudson.test.SingleFileSCM
- All Implemented Interfaces:
- ExtensionPoint, Describable<SCM>
public class SingleFileSCM
- extends NullSCM
SCM useful for testing that puts just one file in the workspace.
- Author:
- Kohsuke Kawaguchi
|
Constructor Summary |
SingleFileSCM(java.lang.String path,
byte[] contents)
|
SingleFileSCM(java.lang.String path,
java.lang.String contents)
|
SingleFileSCM(java.lang.String path,
java.net.URL resource)
When a check out is requested, serve the contents of the URL and place it with the given path name. |
| Methods inherited from class hudson.scm.SCM |
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleFileSCM
public SingleFileSCM(java.lang.String path,
byte[] contents)
SingleFileSCM
public SingleFileSCM(java.lang.String path,
java.lang.String contents)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
SingleFileSCM
public SingleFileSCM(java.lang.String path,
java.net.URL resource)
throws java.io.IOException
- When a check out is requested, serve the contents of the URL and place it with the given path name.
- Throws:
java.io.IOException
checkout
public boolean checkout(AbstractBuild build,
Launcher launcher,
FilePath workspace,
BuildListener listener,
java.io.File changeLogFile)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
checkout in class NullSCM
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2010. All Rights Reserved.