You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Lauzon Daniel-Y18165 <Y1...@motorola.com> on 2004/02/09 19:25:50 UTC

ftp download, has it ever worked?

quoting the ant user's manual from toc/ant tasks/optional tasks/ftp/getting files

	Getting files from an FTP server works pretty much the same way as sending them does. The only difference is that the 	nested filesets use the remotedir attribute as the base directory for the files on the FTP server, and the dir 	attribute as the local directory to put the files into. The file structure from the FTP site is preserved on the local 	machine.
	  <ftp action="get"
	       server="ftp.apache.org"
	       userid="anonymous"
	       password="me@myorg.com">
	    <fileset dir="htdocs/manual">
	      <include name="**/*.html"/>
	    </fileset>
	  </ftp>
	Logs in to ftp.apache.org as anonymous and recursively downloads all .html files from default directory for that user 	into the htdocs/manual directory on the local machine.

Has anybody ever got this to work? The archives has nothing but unanswered entries that match this one.

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