

Ant Task サンプル FTPで更新ファイルをアップロード
FTPでアップロードします。
このサンプルだと両PCの時間は合わした方がいいです。
これはAnt1.6.1用のサンプルです。
<project default="upload"> <target name="upload"> <property name="server" value=""/> <property name="remote_dir" value=""/> <property name="local_dir" value=""/> <property name="user" value=""/> <property name="password" value=""/> <taskdef name="ftp" classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/> <ftp server="${server}" remotedir="${remote_dir}" userid="${user}" password="${password}" depends="yes" binary="yes" > <fileset dir="${local_dir}"> </fileset> </ftp> </target> </project>

