diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index e62140376b53564289ffd745306d742479502b15..8bc7604b0a926e9d87b9651abb2373b26c33700d 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. */