ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: scp multiple files getting error
Date Thu, 04 May 2006 18:33:28 GMT
Try a later version of jsch. I am using jsch-0.1.28-rc4.jar and I get a
reasonable error when trying to copy a file to a remote directory that
does not exist.

BUILD FAILED
H:\scptest.xml:6: com.jcraft.jsch.JSchException: 2: syserr: No such file
or directory, file: /home/rande4/no/directory/path/file

-Rob Anderson

> -----Original Message-----
> From: glenn opdycke-hansen [mailto:glennoph@gmail.com] 
> Sent: Thursday, May 04, 2006 10:22 AM
> To: Ant Users List
> Subject: Re: scp multiple files getting error
> 
> ant 1.6.5 + fixes for sshexec
> jsch jsch-0.1.24.jar
> 
> On 5/4/06, Anderson, Rob (Global Trade) <Rob.Anderson@nike.com> wrote:
> >
> > What version of Ant and jsch are you using?
> >
> > -Rob A
> >
> > > -----Original Message-----
> > > From: glenn opdycke-hansen [mailto:glennoph@gmail.com]
> > > Sent: Thursday, May 04, 2006 6:45 AM
> > > To: ant user
> > > Subject: scp multiple files getting error
> > >
> > > I am executing scp from ant and getting the error message "No 
> > > response from server".
> > > I have used scp successfully before.  This time it is tranfering 
> > > multiple files from winxp to unix.  (transferring a 
> single file is 
> > > working fine.) The code snippet follows:
> > >
> > >     <scp todir="${u}:${pw}@${host}:${patch.target.dir}"
> > >             trust="true" verbose="true">
> > >       <fileset dir="${fpat.home.dir}/${fpat.source.dir}">
> > >         <include name="**/*"/>
> > >       </fileset>
> > >     </scp>
> > >
> > > I checked to see if there is an option or setting on scp 
> that could 
> > > help, but did not find any.
> > > Is there a setting on the service that supports scp?
> > >
> > > I found out that the problem was that the todir value was 
> not found 
> > > on the target system.
> > >
> > > Could we get a better error message?
> > > "No response from server" is pretty general.
> > >
> > > --glenn
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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


Mime
View raw message