Updating docs build: now the docs are deleted and regenerated, and the package is not made just for the docs (not needed).

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352284 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicola Ken Barozzi 2002-03-25 12:17:16 +00:00
parent e21d229617
commit f646a036ea
2 changed files with 5 additions and 22 deletions

View File

@ -158,6 +158,3 @@
<delete dir="${build.dir}"/> <delete dir="${build.dir}"/>
</target> </target>
<target name="cleandocs" depends="init" description="* Cleans the build docs directories">
<delete dir="${build.docs}"/>
</target>

View File

@ -38,27 +38,13 @@
</target> </target>
<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Set a variable if the generated docs are already up-to-date. --> <!-- Clean generated docs dir. -->
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="docs_check" depends="init"> <target name="cleandocs" depends="init" description="* Cleans the build docs directories">
<uptodate property="docs.notrequired" targetfile="${build.docs}/index.html" > <delete dir="${build.docs}"/>
<srcfiles dir="." includes="project-info.xml"/>
<srcfiles dir="${context.dir}/xdocs" includes="**/*.xml"/>
</uptodate>
</target> </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. --> <!-- If generated docs is already up-to-date, print a message saying so. -->
@ -72,7 +58,7 @@
<!-- The documentation system --> <!-- The documentation system -->
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="docs" <target name="docs"
depends="package, prepare-docs, docs_check, making-docs, docs_done" depends="cleandocs, prepare-docs, making-docs"
unless="docs.notrequired" unless="docs.notrequired"
description="* Generates the documentation"> description="* Generates the documentation">
@ -96,7 +82,7 @@
</classpath> </classpath>
</java> </java>
<echo message=" ...docs generated succesfully in ./build/docs ."/> <echo message=" ...docs generated succesfully in ./build/${name}/docs ."/>
<echo message="-------------------------------------------------------------"/> <echo message="-------------------------------------------------------------"/>
</target> </target>