<?xml version="1.0" encoding="UTF-8"?>
<project name="documentation" default="document" basedir="../../">
    <property file="build/build.properties" />
	
	<target name="document">
		<phingcall target="apidocs" />
		<phingcall target="cb" />
	</target>
	
	<target name="apidocs">
		<delete dir="${path.results}/api" />
		<mkdir dir="${path.results}/api" />
        <exec 
			passthru="true"
			command="phpuml 
						&quot;${path.lib}/PasswordLib&quot; 
						-f htmlnew 
						-n PasswordLib 
						--no-deployment-view 
						-o &quot;${path.results}/api&quot;" 
			/>
    </target>
	
	<target name="cb">
		<delete dir="${path.results}/code-browser" />
		<mkdir dir="${path.results}/code-browser" />
		<mkdir dir="${path.results}/logs" />
        <exec
            command="phpcb 
						--source &quot;${path.lib}&quot; 
						--output &quot;${path.results}/code-browser/&quot; 
						--log &quot;${path.logs}&quot;"
            passthru="true"
            checkreturn="false" />
    </target>
	
</project>