|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.michelin.cio.hudson.plugins.copytoslave.MyFilePath
public class MyFilePath
Complements Hudson's 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 Summary | |
|---|---|
MyFilePath()
|
|
| Method Summary | |
|---|---|
static int |
copyRecursiveTo(hudson.FilePath source,
String includes,
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(File baseDir,
boolean flatten,
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 Integer |
writeToTar(File baseDir,
String includes,
String excludes,
boolean includeAntExcludes,
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyFilePath()
| Method Detail |
|---|
public static int copyRecursiveTo(hudson.FilePath source,
String includes,
String excludes,
boolean flatten,
boolean includeAntExcludes,
hudson.FilePath target)
throws IOException,
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.
IOException
InterruptedException
public static void readFromTar(File baseDir,
boolean flatten,
InputStream in)
throws IOException
FilePath.readFromTar(java.lang.String, java.io.File, java.io.InputStream) method with
some tweaking (mainly the flatten behavior).
IOExceptionFilePath.readFromTar(java.lang.String, java.io.File, java.io.InputStream)
public static Integer writeToTar(File baseDir,
String includes,
String excludes,
boolean includeAntExcludes,
OutputStream out)
throws IOException
FilePath.writeToTar(java.io.File, java.lang.String, java.lang.String, java.io.OutputStream) method with some
tweaking (added an includeAntExcludes parameter).
IOExceptionhudson.FilePath#writeToTar(java.lang.String, java.io.File, java.io.InputStream)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||