</target>
-
<!-- =================================================================== -->
- <!-- Set a variable if the generated docs are already up-to-date. -->
+ <!-- Clean generated docs dir. -->
<!-- =================================================================== -->
- <target name="docs_check" depends="init">
- <uptodate property="docs.notrequired" targetfile="${build.docs}/index.html" >
- <srcfiles dir="." includes="project-info.xml"/>
- <srcfiles dir="${context.dir}/xdocs" includes="**/*.xml"/>
- </uptodate>
+ <target name="cleandocs" depends="init" description="* Cleans the build docs directories">
+ <delete dir="${build.docs}"/>
</target>
- <!-- =================================================================== -->
- <!-- If generated docs is already up-to-date, print a message saying so. -->
- <!-- =================================================================== -->
- <target name="docs_done" if="docs.notrequired">
- <echo message="-------------------------------------------------------------"/>
- <echo message="Not rebuilding docs, as they are up-to-date:"/>
- <echo message=" ${build.docs}/index.html is more recent than"/>
- <echo message=" project-info.xml and ${context.dir}/xdocs/*.xml"/>
- <echo message="-------------------------------------------------------------"/>
- </target>
<!-- =================================================================== -->
<!-- If generated docs is already up-to-date, print a message saying so. -->
<!-- The documentation system -->
<!-- =================================================================== -->
<target name="docs"
- depends="package, prepare-docs, docs_check, making-docs, docs_done"
+ depends="cleandocs, prepare-docs, making-docs"
unless="docs.notrequired"
description="* Generates the documentation">
</classpath>
</java>
- <echo message=" ...docs generated succesfully in ./build/docs ."/>
+ <echo message=" ...docs generated succesfully in ./build/${name}/docs ."/>
<echo message="-------------------------------------------------------------"/>
</target>