ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject SCP task succeeds on client, but no file created on remote site
Date Thu, 03 Sep 2009 12:55:05 GMT
Hi.  I am a new ant user seeking to use ant to deploy my webapp to my remote server.  For starters,
I am just trying to copy one file from my local computer to my remote server using an scp
task.  According to my local computer, my attempt works: I get "BUILD SUCCESSFUL" and even
the number of bytes per second that the transfer took.  However, the file does not appear
on the server.  Here is the target with password and site obscured, along with console output
from running ant.  Thanks for any input.


<property name="file" location="z:/test.txt"/>
<property name="dest" location="/test"/>
<target name="test">
    <scp file="${file}" todir="root@MySiteHere:${dest}"
         password="MyPasswordHere" trust="true" verbose="true"


      [scp] Connecting to
      [scp] Sending: test.txt : 474
      [scp] File transfer time: 0.17 Average Rate: 2,771.93 B/s
      [scp] done.

Total time: 1 second

Best Weight Loss Program - Click Here!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message