Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ant FTP -- Please help

Status
Not open for further replies.

DieterRandolph

Programmer
Mar 5, 2004
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top