org.jenkinsci.plugins.configfiles.buildwrapper
Class ManagedFileUtil
java.lang.Object
org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil
public class ManagedFileUtil
- extends java.lang.Object
|
Method Summary |
static hudson.FilePath |
createTempFile(hudson.remoting.VirtualChannel channel)
creates a tmp file on the given channel |
static java.util.Map<ManagedFile,hudson.FilePath> |
provisionConfigFiles(java.util.List<ManagedFile> managedFiles,
hudson.FilePath workSpace,
java.io.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 |
ManagedFileUtil
public ManagedFileUtil()
createTempFile
public static hudson.FilePath createTempFile(hudson.remoting.VirtualChannel channel)
throws java.io.IOException,
java.lang.InterruptedException
- creates a tmp file on the given channel
- Throws:
java.io.IOException
java.lang.InterruptedException
provisionConfigFiles
public static java.util.Map<ManagedFile,hudson.FilePath> provisionConfigFiles(java.util.List<ManagedFile> managedFiles,
hudson.FilePath workSpace,
java.io.PrintStream logger)
throws java.io.IOException,
java.lang.InterruptedException
- provisions (publishes) the given files to the workspace.
- Parameters:
managedFiles - the files to be provisionedworkSpace - target workspacelogger - the logger
- Returns:
- a map of all the files copied, mapped to the path of the remote
location
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2004-2011. All Rights Reserved.