<target
depends="init"
description="Uploads the whole generated web site."
name="web.upload"
>
<property
name="FTP_VERBOSE"
value="true"
/>
<property
name="FTP_FILE_SEPARATOR"
value="/"
/>
<property
name="REMOTE_FTP_ROOT_PATH"
value="new"
/>
<ftp
action="send"
binary="yes"
ignoreNoncriticalErrors="true"
passive="true"
password="${FTP_USER_PASSSWORD}"
port="${FTP_PORT}"
remotedir="${REMOTE_FTP_ROOT_PATH}"
separator="${FTP_FILE_SEPARATOR}"
server="${FTP_HOST}"
userid="${FTP_USER_ID}"
verbose="${FTP_VERBOSE}"
>
<fileset dir="${OUTPUT_DIRECTORY_PATH}">
<include name="**/*.css"/>
<include name="**/*.htm"/>
<include name="**/*.html"/>
<include name="**/*.ppt"/>
<include name="**/*.gif"/>
<include name="**/*.tif"/>
<include name="**/*.jpg"/>
<include name="**/*.mp3"/>
<include name="**/*.mpeg"/>
<include name="**/*.wmv"/>
<include name="**/*.zip"/>
<include name="**/*.jar"/>
<include name="**/*.doc"/>
</fileset>
</ftp>
</target>
|