My lazy header ...

web
Target web.upload.generated

web.upload.generated
  |
  +--init

Only uploads the generated part of the 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="Only uploads the generated part of the web site."
	name="web.upload.generated"
>
	<property
		name="FTP_VERBOSE"
		value="true"
	/>

	<property
		name="FTP_FILE_SEPARATOR"
		value="/"
	/>

	<property
		name="REMOTE_FTP_ROOT_PATH"
		value="/"
	/>

	<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="php/**/*"/>

			<include name="css/**/*"/>

			<include name="javascript/**/*"/>

			<include name="*.html"/>

			<include name="*.php"/>
		</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