My lazy header ...

AntDoc
Target antdoc.website.generate

antdoc.website.generate
  |
  +--antdoc.website.generate.pre
    |
    +--init
  |
  +--antdoc.html.manual
    |
    +--antdoc.compile.properties
      |
      +--init

Generates AntDoc website: this is the new way to do it with WedSitor.

The target requires that WedSitor WedSitor.jar (http://wedsitor.free.fr) library be present in Ant library directory. See antdoc.website.generate.pre for other requirements.

This makes a full generation of the AntDoc official web site. The result directory of the generated stuff can be uploaded on internet.

The GENERATE_PHP Ant property is expected and defines whether the generation should be output in PHP or not.


Detail:
<target
	depends="antdoc.website.generate.pre, antdoc.html.manual"
	description="Generates AntDoc website: this is the new way to do it with WedSitor."
	name="antdoc.website.generate"
>
	<echo level="info">Generating site in '${WEBSITE_GENERATED_DIRECTORY_PATH}'</echo>

	<delete dir="${WEBSITE_GENERATED_DIRECTORY_PATH}"/>

	<property
		name="GENERATE_PHP"
		value="yes"
	/>

	<taskdef
		classname="${ED_PACKAGE}.wedsitor.WedSitor"
		name="WedSitor"
	/>

	<WedSitor
		destination="${WEBSITE_GENERATED_DIRECTORY_PATH}"
		frames="no"
		mainCSS="${WEBSITE_SOURCE_DIRECTORY_PATH}/AntDoc.css"
		mySQLDatabaseName="${MYSQL_DATABASE_NAME}"
		mySQLHostName="${MYSQL_HOST_NAME}"
		mySQLUserName="${MYSQL_USER_NAME}"
		mySQLUserPassword="${MYSQL_USER_PASSWORD}"
		php="${GENERATE_PHP}"
		portal="${WEBSITE_SOURCE_DIRECTORY_PATH}/Portal.xml"
		source="${WEBSITE_SOURCE_DIRECTORY_PATH}"
	/>

	<delete file="${WEBSITE_GENERATED_DIRECTORY_PATH}/statistics.xml"/>

	<antcall target="antdoc.api.document"/>

	<antcall target="antdoc.javadoc"/>

	<antcall target="antdoc.website.generate.post"/>

	<antcall target="antdoc.website.example"/>
</target>

... is just like my footer!

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