|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.copyartifact.Copier
hudson.plugins.copyartifact.FingerprintingCopyMethod
@Extension(ordinal=-100.0) public class FingerprintingCopyMethod
Performs fingerprinting during the copy. This minimizes the cost of the fingerprinting as the I/O bound nature of the copy operation masks the cost of digest computation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
FingerprintingCopyMethod()
|
|
| Method Summary | |
|---|---|
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 s,
hudson.FilePath d)
Copy a single file. |
void |
end()
Ends what's started by the Copier.init(Run, AbstractBuild, FilePath, FilePath) method. |
void |
init(hudson.model.Run src,
hudson.model.AbstractBuild<?,?> dst,
hudson.FilePath srcDir,
hudson.FilePath baseTargetDir)
Called before copy-artifact operation. |
| Methods inherited from class hudson.plugins.copyartifact.Copier |
|---|
from, init |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FingerprintingCopyMethod()
| Method Detail |
|---|
public void init(hudson.model.Run src,
hudson.model.AbstractBuild<?,?> dst,
hudson.FilePath srcDir,
hudson.FilePath baseTargetDir)
throws IOException,
InterruptedException
Copier
init in class Copiersrc - 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
InterruptedException
public int copyAll(hudson.FilePath srcDir,
String filter,
hudson.FilePath targetDir)
throws IOException,
InterruptedException
Copier
copyAll in interface CopyMethodcopyAll in class CopiersrcDir - Source directoryfilter - Ant GLOB patterntargetDir - Target directory
IOException
InterruptedExceptionFilePath.copyRecursiveTo(String,FilePath)
public void copyOne(hudson.FilePath s,
hudson.FilePath d)
throws IOException,
InterruptedException
Copier
copyOne in interface CopyMethodcopyOne in class Copiers - Source filed - Target file (includes filename; this is not the target directory).
Directory for target should already exist (copy-artifact build step calls mkdirs).
IOException
InterruptedExceptionFilePath.copyTo(FilePath)public void end()
CopierCopier.init(Run, AbstractBuild, FilePath, FilePath) method.
end in class Copierpublic 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.
clone in class Copier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||