poniedziałek, 18 maja 2009

Ant ftp task "Could not put file: 500 Illegal PORT range rejected."

In response to such error, you need to switch your ftp client in passive mode (in our case ant:ftp). You can do it with additional attribute "passive" set to "yes" (passive="yes").

Exemplary target should be similar to that snippet:

<target name="ftpViewsCommon">
<ftp server="${ftp.server.url}" port="21" remotedir="/${app.dir}/${views}/scripts/common" userid="${ftp.account.username}" password="${ftp.account.password}" binary="no" passive="yes">
<fileset dir="${views}/scripts/common">
<include name="**/*.phtml">

Brak komentarzy:

Prześlij komentarz