<?xml version="1.0"?>

<project name="structure_doc" default="help">

	<description>
		description: "Gobo Eiffel Strucure Library documentation"
		copyright: "Copyright (c) 2016, Eric Bezault and others"
		license: "MIT License"
		date: "$Date: 2017-04-11 18:34:55 +0000 (Tue, 11 Apr 2017) $"
		revision: "$Revision: 100137 $"
	</description>

	<inherit>
		<parent location="${GOBO}/library/common/config/doc.eant">
			<redefine target="install"/>
			<redefine target="for_each"/>
		</parent>
	</inherit>

	<target name="install" depend="init">
		<description>
			Install the Gobo Eiffel Documentation.
		</description>
		
		<set name="xslt_processor" value="gexslt" unless="$GOBO_XSLT_PROCESSOR"/>
		<set name="xslt_processor" value="${GOBO_XSLT_PROCESSOR}" if="${GOBO_XSLT_PROCESSOR}"/>
		<set name="current_input_wrapper" value=""/>
		<set name="input_wrapper" value=""/>
		<geant target="xslt" arguments="index,index,terminology"/>
		<geant target="xslt" arguments="index,terminology,container"/>
		<geant target="xslt" arguments="terminology,container,traversal"/>
		<geant target="xslt" arguments="container,traversal,sort"/>
	</target>

<!-- Implementation -->

	<target name="for_each" export="NONE">
		<description>
			Call 'geant' with the same target ${target} (first argument)
			with each specified file as argument.
		</description>
		<argument name="target"/>

		<geant target="${target}" arguments="index"/>
		<geant target="${target}" arguments="terminology"/>
		<geant target="${target}" arguments="container"/>
		<geant target="${target}" arguments="traversal"/>
	</target>

</project>
