From 898679e8e44cc9ae928166bf5e4413b413c0082c Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 30 Sep 2004 09:24:06 +0000 Subject: [PATCH] Don't ignore invalid operation mode silently PR: 30669 Submitted by: Ben Galbraith git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276894 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java index 72da7ba4c..f8d7f6161 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java @@ -176,7 +176,7 @@ public class Scp extends SSHBase { upload(fromUri, toUri); } } else if (isFromRemote && isToRemote) { - // not implemented yet. + throw new BuildException("Copying from a remote server to a remote server is not supported."); } else { throw new BuildException("'todir' and 'file' attributes " + "must have syntax like the following: "