@Deprecated @Extension(ordinal=-200.0) public class FilePathCopyMethod extends Copier
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
FilePathCopyMethod()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Copier |
clone()
Deprecated.
Creates a clone.
|
int |
copyAll(FilePath srcDir,
String filter,
String excludes,
FilePath targetDir,
boolean fingerprintArtifacts)
Deprecated.
Copy files matching the given file mask to the specified target.
|
void |
copyOne(FilePath source,
FilePath target,
boolean fingerprintArtifacts)
Deprecated.
Copy a single file.
|
void |
initialize(Run<?,?> src,
Run<?,?> dst,
FilePath srcDir,
FilePath baseTargetDir)
Deprecated.
Called before copy-artifact operation.
|
public int copyAll(FilePath srcDir, String filter, String excludes, FilePath targetDir, boolean fingerprintArtifacts) throws IOException, InterruptedException
Copier
Copier
.copyAll
in class Copier
srcDir
- Source directoryfilter
- Ant GLOB patternexcludes
- Ant GLOB pattern. Can be null.targetDir
- Target directoryfingerprintArtifacts
- boolean controlling if the copy should also fingerprint the artifactsIOException
- if an error occurs while performing the operation.InterruptedException
- if any thread interrupts the current thread.FilePath.copyRecursiveTo(String,FilePath)
public void copyOne(FilePath source, FilePath target, boolean fingerprintArtifacts) throws IOException, InterruptedException
Copier
copyOne
in class Copier
source
- Source filetarget
- Target file (includes filename; this is not the target directory).
Directory for target should already exist (copy-artifact build step calls mkdirs).fingerprintArtifacts
- boolean controlling if the copy should also fingerprint the artifactsIOException
- if an error occurs while performing the operation.InterruptedException
- if any thread interrupts the current thread.FilePath.copyTo(FilePath)
public Copier clone()
Copier
Copier.init(Run, AbstractBuild, FilePath, FilePath)
method
to allow each initialize-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.public void initialize(Run<?,?> src, Run<?,?> dst, FilePath srcDir, FilePath baseTargetDir) throws IOException, InterruptedException
Copier
initialize
in class Copier
src
- The build record from which we are copying artifacts.dst
- The built into which we are copying artifacts.srcDir
- Source for upcoming file copybaseTargetDir
- Base target dir for upcoming file copy (the copy-artifact
build step may later specify a deeper target dir)IOException
- if an error occurs while performing the operation.InterruptedException
- if any thread interrupts the current thread.Copyright © 2016–2022. All rights reserved.