org.jenkinsci.plugins.configfiles.buildwrapper
Class ManagedFileUtil

java.lang.Object
  extended by org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil

public class ManagedFileUtil
extends Object


Constructor Summary
ManagedFileUtil()
           
 
Method Summary
static hudson.FilePath createTempFile(hudson.remoting.VirtualChannel channel)
          creates a tmp file on the given channel
static Map<ManagedFile,hudson.FilePath> provisionConfigFiles(List<ManagedFile> managedFiles, hudson.FilePath workSpace, PrintStream logger)
          provisions (publishes) the given files to the workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedFileUtil

public ManagedFileUtil()
Method Detail

createTempFile

public static hudson.FilePath createTempFile(hudson.remoting.VirtualChannel channel)
                                      throws IOException,
                                             InterruptedException
creates a tmp file on the given channel

Throws:
IOException
InterruptedException

provisionConfigFiles

public static Map<ManagedFile,hudson.FilePath> provisionConfigFiles(List<ManagedFile> managedFiles,
                                                                    hudson.FilePath workSpace,
                                                                    PrintStream logger)
                                                             throws IOException,
                                                                    InterruptedException
provisions (publishes) the given files to the workspace.

Parameters:
managedFiles - the files to be provisioned
workSpace - target workspace
logger - the logger
Returns:
a map of all the files copied, mapped to the path of the remote location, never null.
Throws:
IOException
InterruptedException


Copyright © 2004-2012. All Rights Reserved.