hudson.plugin.scm.fsscm
Class FSSCM
java.lang.Object
hudson.scm.SCM
hudson.plugin.scm.fsscm.FSSCM
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>
public class FSSCM
- extends hudson.scm.SCM
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.scm.SCM |
PERMISSIONS, TAG |
|
Constructor Summary |
FSSCM(java.lang.String path,
boolean clearWorkspace,
boolean filterEnabled,
boolean includeFilter,
java.lang.String[] filters)
|
|
Method Summary |
boolean |
checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
|
hudson.scm.ChangeLogParser |
createChangeLogParser()
|
protected static java.lang.String |
formatDurration(long diff)
|
hudson.scm.SCMDescriptor<FSSCM> |
getDescriptor()
|
java.lang.String[] |
getFilters()
|
java.lang.String |
getPath()
|
boolean |
isClearWorkspace()
|
boolean |
isFilterEnabled()
|
boolean |
isIncludeFilter()
|
boolean |
pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
There are two things we need to check
files created or modified since last build time, we only need to check the source folder
file deleted since last build time, we have to compare source and destination folder
|
| Methods inherited from class hudson.scm.SCM |
_for, all, buildEnvVars, createEmptyChangeLog, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoots, nullify, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSSCM
public FSSCM(java.lang.String path,
boolean clearWorkspace,
boolean filterEnabled,
boolean includeFilter,
java.lang.String[] filters)
getPath
public java.lang.String getPath()
getFilters
public java.lang.String[] getFilters()
isFilterEnabled
public boolean isFilterEnabled()
isIncludeFilter
public boolean isIncludeFilter()
isClearWorkspace
public boolean isClearWorkspace()
checkout
public boolean checkout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.BuildListener listener,
java.io.File changelogFile)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
checkout in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()
- Specified by:
createChangeLogParser in class hudson.scm.SCM
getDescriptor
public hudson.scm.SCMDescriptor<FSSCM> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptor in class hudson.scm.SCM
pollChanges
public boolean pollChanges(hudson.model.AbstractProject project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- There are two things we need to check
- files created or modified since last build time, we only need to check the source folder
- file deleted since last build time, we have to compare source and destination folder
- Specified by:
pollChanges in class hudson.scm.SCM
- Throws:
java.io.IOException
java.lang.InterruptedException
formatDurration
protected static java.lang.String formatDurration(long diff)
Copyright © 2009. All Rights Reserved.