My lazy header ...

web
Target web.upload

web.upload
  |
  +--init

Uploads the whole generated web site.

This target produces a complete web site generation directory.
The destination directory is defined by the Ant ${OUTPUT_DIRECTORY_PATH} property.

Detail:
<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>

... is just like my footer!

Edouard Mercier 2003.12.08 20:31:08 - AntDoc V0.8h - XSL Transformer Factory: com.icl.saxon.TransformerFactoryImpl