org.jvnet.hudson.test
Class ExtractResourceWithChangesSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.scm.NullSCM
          extended by org.jvnet.hudson.test.ExtractResourceWithChangesSCM
All Implemented Interfaces:
ExtensionPoint, Describable<SCM>

public class ExtractResourceWithChangesSCM
extends NullSCM

SCM useful for testing that extracts the given resource as a zip file.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.scm.NullSCM
NullSCM.DescriptorImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ExtractResourceWithChangesSCM(java.net.URL firstZip, java.net.URL secondZip)
           
 
Method Summary
 boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, java.io.File changeLogFile)
           
 ChangeLogParser createChangeLogParser()
           
static java.lang.String escapeForXml(java.lang.String string)
           
 void saveToChangeLog(java.io.File changeLogFile, ExtractChangeLogParser.ExtractChangeLogEntry changeLog)
           
 
Methods inherited from class hudson.scm.NullSCM
pollChanges
 
Methods inherited from class hudson.scm.SCM
_for, all, buildEnvVars, createEmptyChangeLog, getBrowser, getDescriptor, 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
 

Constructor Detail

ExtractResourceWithChangesSCM

public ExtractResourceWithChangesSCM(java.net.URL firstZip,
                                     java.net.URL secondZip)
Method Detail

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

createChangeLogParser

public ChangeLogParser createChangeLogParser()
Overrides:
createChangeLogParser in class NullSCM

escapeForXml

public static java.lang.String escapeForXml(java.lang.String string)

saveToChangeLog

public void saveToChangeLog(java.io.File changeLogFile,
                            ExtractChangeLogParser.ExtractChangeLogEntry changeLog)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.