<project name="phpDocumentor script" default="main" basedir=".">
<!--
This ant script is only for Windows XP so far.
Modify the exec in order to be more compatible.
To make it work i added a path in my XP to phpdoc
-->
<property name="phpDocCommand" value="phpdoc"/>
<property name="phpDocParams" value="-o HTML:frames:earthli"/>
<property name="sourceFiles" value="-f test.php"/>
<property name="targetParams" value="-t"/>
<property name="targetDir" value="mDocs"/>
<property name="phpDocCommandLine" value="${phpDocParams} ${sourceFiles} ${targetParams} ${targetDir}"/>
<target name="main" depends="cleanDocs, createDocs">
<exec executable="cmd.exe" dir=".">
<arg value="/c ${phpDocCommand} ${phpDocCommandLine}"/>
</exec>
<echo>New MDocs created</echo>
</target>
<target name="cleanDocs">
<delete dir="${targetDir}"/>
</target>
<target name="createDocs">
<echo>${phpDocCommand} ${phpDocCommandLine}</echo>
<mkdir dir="${targetDir}"/>
</target>
</project>