From 26971784d566a8e2238c2a315f0d9f2dd2122eb1 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 14 Jun 2009 15:21:24 +0000 Subject: [PATCH] added a convenience method git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18896 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index e62140376b..8bc7604b0a 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -572,6 +572,15 @@ public final class FilePath implements Serializable { } } + /** + * Conveniene method to call {@link FilePath#copyTo(FilePath)}. + * + * @since 1.311 + */ + public void copyFrom(FilePath src) throws IOException, InterruptedException { + src.copyTo(this); + } + /** * Place the data from {@link FileItem} into the file location specified by this {@link FilePath} object. */ -- GitLab