<project default="javadoc" basedir=".">
	<import file="build-woproject.xml" />

	<target name="framework-init" if="isFramework">
		<property name="appextension" value="framework" />
	</target>

	<target name="application-init" unless="isFramework">
		<property name="appextension" value="woa" />
	</target>

	<target name="setup-javadoc.properties" description="--> setup javadoc properties" depends="init.properties">
		<condition property="isFramework">
			<equals arg1="${project.type}" arg2="framework" casesensitive="no" trim="yes" />
		</condition>
	</target>

	<target name="javadoc-init" depends="setup-javadoc.properties,framework-init,application-init,init.build" />

	<target name="javadoc" depends="javadoc-init,init.woproject">
		<wopath id="javadoc.classpath">
			<frameworks root="ProjectLocal" embed="false" eclipse="true" />
			<frameworks root="External" embed="false" eclipse="true" />
			<frameworks root="Local" embed="false" eclipse="true" />
			<frameworks root="User" embed="false" eclipse="true" />
			<frameworks root="System" embed="false" eclipse="true" />
			<frameworks root="Network" embed="false" eclipse="true" />
			<fileset dir="Libraries">
				<include name="*.jar" />
			</fileset>
			<fileset dir="${wo.extensions}">
				<include name="*.jar" />
			</fileset>
			<pathelement location="bin" />
			<pathelement location="." />
		</wopath>

		<javadoc packagenames="net.onthenet.*" defaultexcludes="yes" destdir="${dest.dir}/Documentation" author="true" version="true" use="true" verbose="false" maxmemory="128m" windowtitle="OntheNet Reference Documentation">
			<classpath refid="javadoc.classpath" />
			<sourcepath>
				<dirset dir=".">
					<include name="**/Sources/" />
				</dirset>
			</sourcepath>
			<link href="http://java.sun.com/j2se/1.5/docs/api/" />
			<link href="http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/" offline="true" packagelistLoc="/data/repository/WebObjects54" />
			<link href="http://webobjects.vstrata.com.au/hudson/job/wonder-54/javadoc/" />
		</javadoc>
	</target>
</project>
