The moose likes Ant, Maven and Other Build Tools and the fly likes Ant FTP - please help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant FTP - please help" Watch "Ant FTP - please help" New topic
Author

Ant FTP - please help

Dieter Randolph
Greenhorn

Joined: Mar 03, 2004
Posts: 1
Hello!
-I administer a collaboration app, and I have a user who's trying to use Ant to FTP a hierarchy of files and folders (a JavaDoc, to be percise) into my server. He is able to connect and send in the files and folders (thus proving that the FTP itself is not the problem), but the wrinkle is that all the files and folders are written to the base directory level, irrespective of its level in the JavaDoc hierarchy. In other words, everything gets sent over, but it's flattened out.
-Here is the user's Ant code:
<target name="deployjavadoc" depends="javadoc">
<ftp server="blahblah.com" remotedir="blahblah" userid="xxxx"
password="xxxx" depends="yes" >
<fileset dir="docs/"/>
</ftp>
</target>

-Once again, this allows him to connect and send the files and folders. Is there something that can be done in Ant to preserve the folder structure? Any guidance you can offer is most welcome.
Thanks in advance,
Dieter
 
 
subject: Ant FTP - please help
 
Threads others viewed
ANT FTP task: Software caused connection abort: connect
FTP Task giving "Connection timed out: connect" Error
NoClassDefFoundError
unable to create directory using ftp task
problem in deplying the file on server
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture