You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Brian Kuhn <bn...@gmail.com> on 2005/08/05 02:34:38 UTC

SCP...done...BUILD SUCCESSFUL....no local file created

Hi all,

I'm using the following snippet to SCP a file from a remote machine to
my local machine.  The output looks fine (although I can't get it to
be more verbose, no matter what I try).  However, I don't get a local
copy of the file even though it says "done" and BUILD SUCCESSFUL.  Any
ideas.  I saw a couple dead threads that related to this so I assume
someone else has at least had the same problem.  I'm using Ant 1.6.5
and Jsch 0.1.20.  The local machine is Win2k and the remote is Solaris
9 I think.

Thanks,
     Brian


My Snippet:
<scp file="${username}:${password}@${server}:${remoteDir}/${filename}"
         todir="${basedir}" trust="true" verbose="true" failonerror="true" />


My Output:
[scp] Connecting to accs3:22
[scp] Receiving file: /home/infr/050804_MASTER_DDL_AND_DATA.sql
[scp] done

BUILD SUCCESSFUL
Total time: 5 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Fwd: SCP...done...BUILD SUCCESSFUL....no local file created

Posted by Nicolas Vervelle <ni...@steria.com>.
Hello,

Brian Kuhn wrote:

>Has anyone gotten the SCP task to work correctly?  I need to copy a
>single file from a server to my local machine using SSH.  Does anyone
>have a working example?
>
I am using SCP to update a website: I scp a .tgz file of the 
modifications and then extract it with sshexec.
The scp task I use:
<scp 
todir="${ssh.user}:${ssh.password}@shell.sourceforge.net:/home/groups/j/jm/jmol/htdocs" 
trust="yes" failonerror="true" localfile="${tgz.file}"/>

You can see the full build file here :
http://cvs.sourceforge.net/viewcvs.py/jmol/Jmol-web/build-deploy.xml?view=markup

Hope this helps,
Nicolas

>
>Thanks,
>     Brian
>
>
>
>---------- Forwarded message ----------
>From: Brian Kuhn <bn...@gmail.com>
>Date: Aug 4, 2005 5:34 PM
>Subject: SCP...done...BUILD SUCCESSFUL....no local file created
>To: Ant Users List <us...@ant.apache.org>
>
>
>Hi all,
>
>I'm using the following snippet to SCP a file from a remote machine to
>my local machine.  The output looks fine (although I can't get it to
>be more verbose, no matter what I try).  However, I don't get a local
>copy of the file even though it says "done" and BUILD SUCCESSFUL.  Any
>ideas.  I saw a couple dead threads that related to this so I assume
>someone else has at least had the same problem.  I'm using Ant 1.6.5
>and Jsch 0.1.20.  The local machine is Win2k and the remote is Solaris
>9 I think.
>
>Thanks,
>     Brian
>
>
>My Snippet:
><scp file="${username}:${password}@${server}:${remoteDir}/${filename}"
>         todir="${basedir}" trust="true" verbose="true" failonerror="true" />
>
>
>My Output:
>[scp] Connecting to accs3:22
>[scp] Receiving file: /home/infr/050804_MASTER_DDL_AND_DATA.sql
>[scp] done
>
>BUILD SUCCESSFUL
>Total time: 5 seconds
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Fwd: SCP...done...BUILD SUCCESSFUL....no local file created

Posted by Brian Kuhn <bn...@gmail.com>.
Has anyone gotten the SCP task to work correctly?  I need to copy a
single file from a server to my local machine using SSH.  Does anyone
have a working example?

Thanks,
     Brian



---------- Forwarded message ----------
From: Brian Kuhn <bn...@gmail.com>
Date: Aug 4, 2005 5:34 PM
Subject: SCP...done...BUILD SUCCESSFUL....no local file created
To: Ant Users List <us...@ant.apache.org>


Hi all,

I'm using the following snippet to SCP a file from a remote machine to
my local machine.  The output looks fine (although I can't get it to
be more verbose, no matter what I try).  However, I don't get a local
copy of the file even though it says "done" and BUILD SUCCESSFUL.  Any
ideas.  I saw a couple dead threads that related to this so I assume
someone else has at least had the same problem.  I'm using Ant 1.6.5
and Jsch 0.1.20.  The local machine is Win2k and the remote is Solaris
9 I think.

Thanks,
     Brian


My Snippet:
<scp file="${username}:${password}@${server}:${remoteDir}/${filename}"
         todir="${basedir}" trust="true" verbose="true" failonerror="true" />


My Output:
[scp] Connecting to accs3:22
[scp] Receiving file: /home/infr/050804_MASTER_DDL_AND_DATA.sql
[scp] done

BUILD SUCCESSFUL
Total time: 5 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org