diff -urpN apache-ant-1.6.2.orig/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java apache-ant-1.6.2/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java --- apache-ant-1.6.2.orig/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java 2005-02-03 21:37:32.032911472 +0100 +++ apache-ant-1.6.2/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java 2005-02-03 21:38:37.399974168 +0100 @@ -112,7 +112,7 @@ public class ScpToMessage extends Abstra } private void doMultipleTransfer() throws IOException, JSchException { - Channel channel = openExecChannel("scp -d -t " + remotePath); + Channel channel = openExecChannel("scp -r -d -t " + remotePath); try { OutputStream out = channel.getOutputStream(); InputStream in = channel.getInputStream();