There is a bug in Ant 1.4.1 (and earlier):

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4821

If you add remotedir it should work for you.

    Erik


----- Original Message ----- 
From: "Bryan P. Glennon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 6:27 PM
Subject: Problems with FTP task


I can't seem to get the optional FTP task working. I have all the
correct jar files installed (the task works - see debug output below),
but never seems to do anything. I have tried sending files, getting
files, and listing the directory, all with the same result. I have
resorted to copying the example from the docs, and I can't even get it
to work.

Here's the target definition:

  <target name="ftp">
  <ftp action="list" 
       listing="tt.txt" 
       server="serverName"  userid="me" password="mypassword" >
       
    <fileset>
      <include name="**"/>
    </fileset>
  </ftp>
  </target>

And here's the relevant section of the output from ant -debug ftp

ftp:
      [ftp] Opening FTP connection to serverName
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] disconnecting

BUILD SUCCESSFUL

So, what am I doing wrong?

Thanks,
Bryan

--
Bryan Glennon (mailto:[EMAIL PROTECTED])
BPG Consulting, Inc. (http://www.bpgc.com)
Tech Question? (mailto:[EMAIL PROTECTED])

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to