My lazy header ...

AntDoc
Target antdoc.website.generate.pre

antdoc.website.generate.pre
  |
  +--init

Makes sure that all libraries are being present so as to generate the website.

This task fails is some jar library necessary for the web site generation is missing.

Detail:
<target
	depends="init"
	description="Makes sure that all libraries are being present so as to generate the website."
	name="antdoc.website.generate.pre"
>

	<available
		classname="${ED_PACKAGE}.wedsitor.WedSitor"
		property="WEDSITOR_OK"
	/>

	<antcall target="fail.unless">
		<param
			name="PROPERTY_NAME"
			value="${WEDSITOR_OK}"
		/>

		<param
			name="MESSAGE"
			value="The WedSitor jar is missing from Ant library directory ('${ant.home}/lib/WedSitor.jar' missing)"
		/>
	</antcall>
	<--Not supported by Ant V1.4.1-->
	<--fail unless="WEDSITOR_OK">The WedSitor jar is missing from Ant library directory ('${ant.home}/lib/WedSitor.jar' missing)</fail-->

	<available
		classname="com.java2html.Java2HTMLTask"
		property="J2H_OK"
	/>

	<antcall target="fail.unless">
		<param
			name="PROPERTY_NAME"
			value="${J2H_OK}"
		/>

		<param
			name="MESSAGE"
			value="The Java2HTML jar is missing from Ant library directory ('${ant.home}/lib/j2h.jar' missing)"
		/>
	</antcall>

	<--Not supported by Ant V1.4.1-->

	<--fail unless="J2H_OK">The Java2HTML jar is missing from Ant library directory ('${ant.home}/lib/j2h.jar' missing)</fail-->
</target>

... is just like my footer!

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