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: issue getting file using scp call within ant
Date Tue, 23 Nov 2004 22:30:29 GMT
So you get BUILD SUCCESSFULL, but no file locally, right? You might try to run ant with -debug
or -v option to get more output. The output below does not indicate anything wrong.

-Rob Anderson

> -----Original Message-----
> From: Dan Symula [mailto:dsymula@us.ibm.com]
> Sent: Tuesday, November 23, 2004 11:55 AM
> To: Ant Users List
> Subject: RE: issue getting file using scp call within ant
> 
> 
> <project name="Metrics_FTP_Pull" default="work">
> 
> <scp file="xxxx:xxxx@xxxxxx:/web/logs/ihs/dan.test" todir="/wrc/
> scripts"/>
> 
> [scp] Connecting to xxxxxxx
>       [scp] Receiving file: /web/logs/ihs/dan.test
>       [scp] done
> 
> Script works fine for the other machines.. this one is an 
> example of one 
> that does not work.
> 
> 
> 
> 
> 
> "Anderson, Rob (Global Trade)" <Rob.Anderson@nike.com> 
> 11/23/2004 11:45 AM
> Please respond to
> "Ant Users List"
> 
> 
> To
> "Ant Users List" <user@ant.apache.org>
> cc
> 
> Subject
> RE: issue getting file using scp call within ant
> 
> 
> 
> 
> 
> 
> Send your build file and output from your build to the list.
> 
> -Rob Anderson
> 
> > -----Original Message-----
> > From: Dan Symula [mailto:dsymula@us.ibm.com]
> > Sent: Tuesday, November 23, 2004 8:22 AM
> > To: Ant Users List
> > Subject: Re: issue getting file using scp call within ant
> > 
> > 
> > Ive done a search for the file using find command and it does 
> > not show up. 
> >  This is UNIX by the way. So no I have not made a mistake in 
> > the code and 
> > lost the file.  Ive also hardcoded variables and tried the 
> > script in this 
> > way. The file still does not show up.
> > 
> > If I am missing jars, it would seem that I wouldnt be able 
> to get any 
> > files. If I am using an incompatible ant version, I again 
> > would thinkg scp 
> > wouldnt work at all...
> > 
> > Still searching...
> > 
> > 
> > 
> > 
> > 
> > 
> > "Rhino" <rhino1@sympatico.ca> 
> > 11/23/2004 07:52 AM
> > Please respond to
> > "Ant Users List"
> > 
> > 
> > To
> > "Ant Users List" <user@ant.apache.org>
> > cc
> > 
> > Subject
> > Re: issue getting file using scp call within ant
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ----- Original Message ----- 
> > From: "Dan Symula" <dsymula@us.ibm.com>
> > To: <user@ant.apache.org>
> > Sent: Tuesday, November 23, 2004 10:33 AM
> > Subject: issue getting file using scp call within ant
> > 
> > 
> > > Ive built a fairly simple ant script to go to several 
> > different machines
> > > and get some files.  The script runs correctly, and gives no error
> > > messages. However, for two of the machines it goes to, the 
> > files are not
> > > received, the other two it does receive files. The output 
> > says the file 
> > is
> > > being recieved, but it does not show up. The script uses the scp 
> > command.
> > > I can manually get the file using the sftp command, so it seems
> > > communication is working bewtween machines. It also seems 
> > that there is 
> > no
> > > syntax type error, since the file builds, and works for half the 
> > machines.
> > > Im stumped to explain what is happening.. Any suggestions would be
> > > appreciated.
> > >
> > 
> > Since you haven't provided any code and say that you aren't 
> > getting any
> > error messages and you do successfully get files from two of 
> > the machines, 
> > I
> > can only guess that you have made a mistake in your code and 
> > are actually
> > receiving the files from all 4 machines but, in the case of 
> two of the
> > machines, you aren't writing them to where you intended to 
> > write them on
> > your local machine. Perhaps the variable describing the 
> > target directory
> > does not have the value you think it does and the files are 
> actually 
> > getting
> > written to a different directory.
> > 
> > If that doesn't turn out to be the problem, perhaps you need 
> > to check that
> > you are using a current version of Ant and of the jsch jar. See the 
> > Library
> > Dependencies section of the manual for the details of what 
> > jars you need 
> > and
> > where to get them.
> > 
> > Rhino
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 
> 


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


Mime
View raw message