public class MyFilePath
extends java.lang.Object
implements java.io.Serializable
FilePath to enhance the copyRecursiveTo()
method so that it offer a possibility to flatten dirs (cf. HUDSON-8220) and
to not use Ant's default excludes (cf. HUDSON-7999).
This class also fixes HUDSON-8155.
| Constructor and Description |
|---|
MyFilePath() |
| Modifier and Type | Method and Description |
|---|---|
static int |
copyRecursiveTo(hudson.FilePath source,
java.lang.String includes,
java.lang.String excludes,
boolean flatten,
boolean includeAntExcludes,
hudson.FilePath target)
Enhances Hudson's
FilePath.copyRecursiveTo(hudson.FilePath) until I patch Hudson
core and upgrade the plugin to the corresponding Hudson version. |
static void |
readFromTar(java.io.File baseDir,
boolean flatten,
java.io.InputStream in)
Full copy/paste of Hudson's
FilePath.readFromTar(java.lang.String, java.io.File, java.io.InputStream) method with
some tweaking (mainly the flatten behavior). |
static java.lang.Integer |
writeToTar(java.io.File baseDir,
java.lang.String includes,
java.lang.String excludes,
boolean includeAntExcludes,
java.io.OutputStream out)
Full copy/paste of Hudson's
FilePath.writeToTar(java.io.File, java.lang.String, java.lang.String, java.io.OutputStream) method with some
tweaking (added an includeAntExcludes parameter). |
public static int copyRecursiveTo(hudson.FilePath source,
java.lang.String includes,
java.lang.String excludes,
boolean flatten,
boolean includeAntExcludes,
hudson.FilePath target)
throws java.io.IOException,
java.lang.InterruptedException
FilePath.copyRecursiveTo(hudson.FilePath) until I patch Hudson
core and upgrade the plugin to the corresponding Hudson version.
This method supports only local to local and local to remote copies.
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void readFromTar(java.io.File baseDir,
boolean flatten,
java.io.InputStream in)
throws java.io.IOException
FilePath.readFromTar(java.lang.String, java.io.File, java.io.InputStream) method with
some tweaking (mainly the flatten behavior).java.io.IOExceptionFilePath.readFromTar(java.lang.String, java.io.File, java.io.InputStream)public static java.lang.Integer writeToTar(java.io.File baseDir,
java.lang.String includes,
java.lang.String excludes,
boolean includeAntExcludes,
java.io.OutputStream out)
throws java.io.IOException
FilePath.writeToTar(java.io.File, java.lang.String, java.lang.String, java.io.OutputStream) method with some
tweaking (added an includeAntExcludes parameter).java.io.IOExceptionhudson.FilePath#writeToTar(java.lang.String, java.io.File, java.io.InputStream)Copyright © 2004-2015. All Rights Reserved.