bodewig 2004/09/30 02:24:06
Modified: src/main/org/apache/tools/ant/taskdefs/optional/ssh Scp.java
Log:
Don't ignore invalid operation mode silently
PR: 30669
Submitted by: Ben Galbraith
Revision Changes Path
1.18 +1 -1
ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
Index: Scp.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- Scp.java 14 Jun 2004 12:23:50 -0000 1.17
+++ Scp.java 30 Sep 2004 09:24:06 -0000 1.18
@@ -176,7 +176,7 @@
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: "
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]