hudson.plugins.copyartifact
Interface CopyMethod

All Superinterfaces:
hudson.ExtensionPoint
All Known Implementing Classes:
Copier, FilePathCopyMethod, FingerprintingCopyMethod

Deprecated. as of 1.21 If you were implementing this interface, extend from Copier instead. If you were taking an instance of this interface, use Copier#from() to wrap it as a Copier

public interface CopyMethod
extends hudson.ExtensionPoint


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Method Summary
 int copyAll(hudson.FilePath srcDir, String filter, hudson.FilePath targetDir)
          Deprecated. Copy files matching the given file mask to the specified target.
 void copyOne(hudson.FilePath source, hudson.FilePath target)
          Deprecated. Copy a single file.
 void init(hudson.FilePath srcDir, hudson.FilePath baseTargetDir)
          Deprecated. Called before copy-artifact operation.
 

Method Detail

init

void init(hudson.FilePath srcDir,
          hudson.FilePath baseTargetDir)
          throws IOException,
                 InterruptedException
Deprecated. 
Called before copy-artifact operation.

Parameters:
srcDir - Source for upcoming file copy
baseTargetDir - Base target dir for upcoming file copy (the copy-artifact build step may later specify a deeper target dir)
Throws:
IOException
InterruptedException

copyAll

int copyAll(hudson.FilePath srcDir,
            String filter,
            hudson.FilePath targetDir)
            throws IOException,
                   InterruptedException
Deprecated. 
Copy files matching the given file mask to the specified target.

Parameters:
srcDir - Source directory
filter - Ant GLOB pattern
targetDir - Target directory
Returns:
Number of files that were copied
Throws:
IOException
InterruptedException
See Also:
FilePath.copyRecursiveTo(String,FilePath)

copyOne

void copyOne(hudson.FilePath source,
             hudson.FilePath target)
             throws IOException,
                    InterruptedException
Deprecated. 
Copy a single file.

Parameters:
source - Source file
target - Target file (includes filename; this is not the target directory). Directory for target should already exist (copy-artifact build step calls mkdirs).
Throws:
IOException
InterruptedException
See Also:
FilePath.copyTo(FilePath)


Copyright © 2004-2012 Hudson. All Rights Reserved.