ant -lib /path/to/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar site-deploy
<project> <target name="site-deploy"> <ftp server="***" remotedir="/var/www/" userid="***" password="***" depends="no" binary="yes"> <fileset dir="./site"> <include name="**/*"/> </fileset> </ftp> </target> </project>