@Extension(ordinal=-200.0) public class FilePathCopyMethod extends Copier
| Constructor and Description |
|---|
FilePathCopyMethod() |
| Modifier and Type | Method and Description |
|---|---|
Copier |
clone()
Creates a clone.
|
int |
copyAll(hudson.FilePath srcDir,
String filter,
hudson.FilePath targetDir)
Copy files matching the given file mask to the specified target.
|
void |
copyOne(hudson.FilePath source,
hudson.FilePath target)
Copy a single file.
|
public int copyAll(hudson.FilePath srcDir,
String filter,
hudson.FilePath targetDir)
throws IOException,
InterruptedException
CopiercopyAll in interface CopyMethodcopyAll in class CopiersrcDir - Source directoryfilter - Ant GLOB patterntargetDir - Target directoryIOExceptionInterruptedExceptionFilePath#recursiveCopyTo(String,FilePath)public void copyOne(hudson.FilePath source,
hudson.FilePath target)
throws IOException,
InterruptedException
CopiercopyOne in interface CopyMethodcopyOne in class Copiersource - Source filetarget - Target file (includes filename; this is not the target directory).
Directory for target should already exist (copy-artifact build step calls mkdirs).IOExceptionInterruptedExceptionFilePath.copyTo(FilePath)public Copier clone()
CopierCopier.init(Run, AbstractBuild, FilePath, FilePath) method
to allow each init-end session to run against different objects, so you need not copy any state
that your Copier might maintain.
This is a cheap hack to implement a factory withot breaking backward compatibility.
If you maintain no state, this method can return this without creating a copy.Copyright © 2004-2014 Hudson. All Rights Reserved.