From ee2ef56a0f75323fda5365348fbd32ee9a722a78 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 20 Jun 2009 03:13:29 +0000 Subject: [PATCH] added one more convenience method. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19095 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index aab74f0da5..5a8097f055 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -1254,6 +1254,14 @@ public final class FilePath implements Serializable { void close() throws IOException; } + /** + * Copies the contents of this directory recursively into the specified target directory. + * @since 1.312 + */ + public int copyRecursiveTo(FilePath target) throws IOException, InterruptedException { + return copyRecursiveTo("**/*",target); + } + public int copyRecursiveTo(String fileMask, FilePath target) throws IOException, InterruptedException { return copyRecursiveTo(fileMask,null,target); }