<project name="GEF Doc Isv Build" default="all"  basedir="." >

<property name="install" value="${basedir}/../../" />

<target name="all">
	<antcall target="generateJavadoc" />
</target>

<target name="generateJavadoc">
    <property name="optionsFile" value="gefOptions.txt"/>

	<replace file="${basedir}/${optionsFile}" token="@version@" value="3.0.0"/>
	<replace file="${basedir}/${optionsFile}" token="@stamp@" value="${buildid}" />
	<replace file="${basedir}/${optionsFile}" token="@rt@" value="${rt}" />

		
	<!--scrub isv plugin directories of any preexisting api doc content-->
	<delete dir="${install}/plugins/org.eclipse.gef.doc.isv/reference/api"/>
	<mkdir dir="${install}/plugins/org.eclipse.gef.doc.isv/reference/api"/>

	<exec dir="." executable="${java.home}/../bin/javadoc" output="doc.bin.log">
		<arg line="@${basedir}/${optionsFile} -J-Xmx180m" />
	</exec>
</target>

</project>

