You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Daphna Deutsch <Da...@opentv.co.il> on 2008/04/27 13:59:33 UTC

Problem when using ant task SCP

Hello,

I'm trying to use the ant task SCP to copy a file from sftp server.

 

I manage to copy a local file to the SFTP server, with no errors. But
when I'm trying to copy a file from the SFTP server to a local
directory, the file is being copied but I'm getting error message at the
end of the task.

 

 

This is the task that I wrote:

 

<target name="get_from_sftp">

<scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
trust="yes" sftp="true" />

</target>

 

And I'm getting the following result:

 

get_from_sftp:

      [scp] Connecting to IP_ADDRESS:22

      [scp] Receiving file: /daphna/res1.xml

      [scp] Receiving: res1.xml : 127

      [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s

 

BUILD FAILED

D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No such
file

 

 

Thanks for your help,

Daphna

 


Re: Problem when using ant task SCP

Posted by Dennis Lundberg <de...@apache.org>.
OK, but the task you are using is one of Ant's optional tasks. The 
documentation for that task is here:

   http://ant.apache.org/manual/OptionalTasks/scp.html

Ant != Commons

Daphna Deutsch wrote:
> http://commons.apache.org/vfs/mail-lists.html
> 
> 
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org] 
> Sent: Sunday, April 27, 2008 3:35 PM
> To: Commons Users List
> Subject: Re: Problem when using ant task SCP
> 
> Which site is that?
> 
> Daphna Deutsch wrote:
>> Hi,
>>
>> When I click on the "post" link in the site, it creates new e-mail
>> address to user@commons.apache.org.
>>
>> Is there another way to post the question?
>>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com] 
>> Sent: Sunday, April 27, 2008 3:19 PM
>> To: Commons Users List
>> Subject: Re: Problem when using ant task SCP
>>
>> This is really an question for the Ant user mailing list.
>>
>> Try posting the question there.
>>
>>
>> 2008/4/27 Daphna Deutsch <Da...@opentv.co.il>:
>>> Hello,
>>>
>>>  I'm trying to use the ant task SCP to copy a file from sftp server.
>>>
>>>
>>>
>>>  I manage to copy a local file to the SFTP server, with no errors.
> But
>>>  when I'm trying to copy a file from the SFTP server to a local
>>>  directory, the file is being copied but I'm getting error message at
>> the
>>>  end of the task.
>>>
>>>
>>>
>>>
>>>
>>>  This is the task that I wrote:
>>>
>>>
>>>
>>>  <target name="get_from_sftp">
>>>
>>>  <scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
>>>  trust="yes" sftp="true" />
>>>
>>>  </target>
>>>
>>>
>>>
>>>  And I'm getting the following result:
>>>
>>>
>>>
>>>  get_from_sftp:
>>>
>>>       [scp] Connecting to IP_ADDRESS:22
>>>
>>>       [scp] Receiving file: /daphna/res1.xml
>>>
>>>       [scp] Receiving: res1.xml : 127
>>>
>>>       [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s
>>>
>>>
>>>
>>>  BUILD FAILED
>>>
>>>  D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No
>> such
>>>  file
>>>
>>>
>>>
>>>
>>>
>>>  Thanks for your help,
>>>
>>>  Daphna
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
> 
> 


-- 
Dennis Lundberg

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


RE: Problem when using ant task SCP

Posted by Daphna Deutsch <Da...@opentv.co.il>.
http://commons.apache.org/vfs/mail-lists.html


-----Original Message-----
From: Dennis Lundberg [mailto:dennisl@apache.org] 
Sent: Sunday, April 27, 2008 3:35 PM
To: Commons Users List
Subject: Re: Problem when using ant task SCP

Which site is that?

Daphna Deutsch wrote:
> Hi,
> 
> When I click on the "post" link in the site, it creates new e-mail
> address to user@commons.apache.org.
> 
> Is there another way to post the question?
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com] 
> Sent: Sunday, April 27, 2008 3:19 PM
> To: Commons Users List
> Subject: Re: Problem when using ant task SCP
> 
> This is really an question for the Ant user mailing list.
> 
> Try posting the question there.
> 
> 
> 2008/4/27 Daphna Deutsch <Da...@opentv.co.il>:
>> Hello,
>>
>>  I'm trying to use the ant task SCP to copy a file from sftp server.
>>
>>
>>
>>  I manage to copy a local file to the SFTP server, with no errors.
But
>>  when I'm trying to copy a file from the SFTP server to a local
>>  directory, the file is being copied but I'm getting error message at
> the
>>  end of the task.
>>
>>
>>
>>
>>
>>  This is the task that I wrote:
>>
>>
>>
>>  <target name="get_from_sftp">
>>
>>  <scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
>>  trust="yes" sftp="true" />
>>
>>  </target>
>>
>>
>>
>>  And I'm getting the following result:
>>
>>
>>
>>  get_from_sftp:
>>
>>       [scp] Connecting to IP_ADDRESS:22
>>
>>       [scp] Receiving file: /daphna/res1.xml
>>
>>       [scp] Receiving: res1.xml : 127
>>
>>       [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s
>>
>>
>>
>>  BUILD FAILED
>>
>>  D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No
> such
>>  file
>>
>>
>>
>>
>>
>>  Thanks for your help,
>>
>>  Daphna
>>
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 


-- 
Dennis Lundberg

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


This e-mail and any attachments may contain information that is confidential, proprietary, privileged or otherwise protected by law. The information contained herein is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.


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


Re: Problem when using ant task SCP

Posted by Dennis Lundberg <de...@apache.org>.
Which site is that?

Daphna Deutsch wrote:
> Hi,
> 
> When I click on the "post" link in the site, it creates new e-mail
> address to user@commons.apache.org.
> 
> Is there another way to post the question?
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com] 
> Sent: Sunday, April 27, 2008 3:19 PM
> To: Commons Users List
> Subject: Re: Problem when using ant task SCP
> 
> This is really an question for the Ant user mailing list.
> 
> Try posting the question there.
> 
> 
> 2008/4/27 Daphna Deutsch <Da...@opentv.co.il>:
>> Hello,
>>
>>  I'm trying to use the ant task SCP to copy a file from sftp server.
>>
>>
>>
>>  I manage to copy a local file to the SFTP server, with no errors. But
>>  when I'm trying to copy a file from the SFTP server to a local
>>  directory, the file is being copied but I'm getting error message at
> the
>>  end of the task.
>>
>>
>>
>>
>>
>>  This is the task that I wrote:
>>
>>
>>
>>  <target name="get_from_sftp">
>>
>>  <scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
>>  trust="yes" sftp="true" />
>>
>>  </target>
>>
>>
>>
>>  And I'm getting the following result:
>>
>>
>>
>>  get_from_sftp:
>>
>>       [scp] Connecting to IP_ADDRESS:22
>>
>>       [scp] Receiving file: /daphna/res1.xml
>>
>>       [scp] Receiving: res1.xml : 127
>>
>>       [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s
>>
>>
>>
>>  BUILD FAILED
>>
>>  D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No
> such
>>  file
>>
>>
>>
>>
>>
>>  Thanks for your help,
>>
>>  Daphna
>>
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 


-- 
Dennis Lundberg

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


RE: Problem when using ant task SCP

Posted by Daphna Deutsch <Da...@opentv.co.il>.
Hi,

When I click on the "post" link in the site, it creates new e-mail
address to user@commons.apache.org.

Is there another way to post the question?

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Sunday, April 27, 2008 3:19 PM
To: Commons Users List
Subject: Re: Problem when using ant task SCP

This is really an question for the Ant user mailing list.

Try posting the question there.


2008/4/27 Daphna Deutsch <Da...@opentv.co.il>:
> Hello,
>
>  I'm trying to use the ant task SCP to copy a file from sftp server.
>
>
>
>  I manage to copy a local file to the SFTP server, with no errors. But
>  when I'm trying to copy a file from the SFTP server to a local
>  directory, the file is being copied but I'm getting error message at
the
>  end of the task.
>
>
>
>
>
>  This is the task that I wrote:
>
>
>
>  <target name="get_from_sftp">
>
>  <scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
>  trust="yes" sftp="true" />
>
>  </target>
>
>
>
>  And I'm getting the following result:
>
>
>
>  get_from_sftp:
>
>       [scp] Connecting to IP_ADDRESS:22
>
>       [scp] Receiving file: /daphna/res1.xml
>
>       [scp] Receiving: res1.xml : 127
>
>       [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s
>
>
>
>  BUILD FAILED
>
>  D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No
such
>  file
>
>
>
>
>
>  Thanks for your help,
>
>  Daphna
>
>
>
>

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


This e-mail and any attachments may contain information that is confidential, proprietary, privileged or otherwise protected by law. The information contained herein is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.


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


Re: Problem when using ant task SCP

Posted by sebb <se...@gmail.com>.
This is really an question for the Ant user mailing list.

Try posting the question there.


2008/4/27 Daphna Deutsch <Da...@opentv.co.il>:
> Hello,
>
>  I'm trying to use the ant task SCP to copy a file from sftp server.
>
>
>
>  I manage to copy a local file to the SFTP server, with no errors. But
>  when I'm trying to copy a file from the SFTP server to a local
>  directory, the file is being copied but I'm getting error message at the
>  end of the task.
>
>
>
>
>
>  This is the task that I wrote:
>
>
>
>  <target name="get_from_sftp">
>
>  <scp file="USER:PAS@IP_ADDRESS:/daphna/res1.xml" todir="D:\result\"
>  trust="yes" sftp="true" />
>
>  </target>
>
>
>
>  And I'm getting the following result:
>
>
>
>  get_from_sftp:
>
>       [scp] Connecting to IP_ADDRESS:22
>
>       [scp] Receiving file: /daphna/res1.xml
>
>       [scp] Receiving: res1.xml : 127
>
>       [scp] File transfer time: 0.02 Average Rate: 8,466.67 B/s
>
>
>
>  BUILD FAILED
>
>  D:\projects\ANT\build.xml:41: com.jcraft.jsch.JSchException: 2: No such
>  file
>
>
>
>
>
>  Thanks for your help,
>
>  Daphna
>
>
>
>

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