added one more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19095 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-06-20 03:13:29 +00:00
1 parent e6df26dc3b
commit ee2ef56a0f
1 file changed
+8
+8
View File
@@ -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);
}