ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhirendra Kulkarni" <dkulka...@ptc.com>
Subject Re: FTP
Date Tue, 09 Oct 2001 10:24:04 GMT
hello jason,
   Thanks for the reply. Yes i want to send some file to remote machine also
on NT . Iam not clear on where are we mentioning the ip adress of the
machine iam trying to connect. Also i did not understand that username and
password are assigned by IS department, If i could sit on that machine then
i will log in to that machine with administrator and password given. So pl
explain me or probably send one sample file where in some files are
transfered to remote machine through ftp

Thanks
DK

----- Original Message -----
From: Jason Rogers <jason.rogers@tumbleweed.com>
To: 'Dhirendra Kulkarni' <dkulkarni@ptc.com>
Sent: Tuesday, October 09, 2001 8:10 PM
Subject: RE: FTP


>     > Hi Iam trying to put some files in remote machine which
>     > is in LAN to my
>     > machine using FTP task of Ant, I am not able to
>     > understand how to use this
>     > task, My xml reads as below
>     >
>     >  <target name="transfer" depends="main">
>     >     <ftp server="ftp.apache.org"
>     >        remotedir="incoming"
>     >        userid="anonymous"
>     >        password="me@myorg.com"
>     >        depends="yes"
>     >     >
>     >     <fileset dir="./samples" >
>     >       <include name="*.doc"/>
>     >     </fileset>
>     >     </ftp>
>     >   </target>
>     >
>     > iam getting error: C:\ant\jakarta-ant-1.3\build.xml:21:
>     > error during FTP
>     > transfer: java.net.Connect
>     > Exception: Connection refused: no further information
>     >
>     > Here pl clarify certain things:
>     >
>     > 1.where are we saying that to which remote machine we are
>     > connecting ( we
>     > are mentioning ftp server and no remote m/c ip)
>
> The IP address will be resolved by the machine name
>
>     > 2. where are these userid and password are created
>
> Theses are assigned, in your case, by the IS department.  If you could sit
> at that remote machine, how would you login?  That is the same login
> information you should use in this task.
>
> Also, if I understood your email properly, this target will not work for
> you.  The way the target is written, you are doing a SEND command TO the
> remote machine, not a GET command FROM the remote machine.  In order to
get
> files you need to add the action="get" attribute to your task.  The
> connection error is probably due to an invalid userid and/or password.
> (Someone correct me if I am wrong.)
>
> HTH.
> -jason
>
>


Mime
View raw message