Author: pier Date: Thu Nov 4 15:22:12 2004 New Revision: 56632 Modified: cocoon/whiteboard/kernel/build.xml Log: Splitting JavaDoc and Compilation
Modified: cocoon/whiteboard/kernel/build.xml ============================================================================== --- cocoon/whiteboard/kernel/build.xml (original) +++ cocoon/whiteboard/kernel/build.xml Thu Nov 4 15:22:12 2004 @@ -120,8 +120,8 @@ | JavaDoc generation | + ============================================================================ --> - <target name="javadoc" unless="javadoc.uptodate" depends="webapp.prepare"> - <!--javadoc destdir="${webapp.docs.dir}/javadoc" + <target name="javadoc.generate" unless="javadoc.uptodate" depends="webapp.prepare"> + <javadoc destdir="${webapp.docs.dir}/javadoc" author="true" version="true" use="true" @@ -142,27 +142,10 @@ href="http://java.sun.com/j2ee/1.4/docs/api/package-list" packagelistLoc="${tools.dir}/package-list/j2ee" offline="true"/> - </javadoc--> + </javadoc> </target> - <!-- =========================================================================== + - | Web-Application generation | - + ============================================================================ --> - - <target name="webapp.prepare" depends="prepare"> - <mkdir dir="${webapp.docs.dir}"/> - <mkdir dir="${webapp.root.dir}"/> - <copy todir="${webapp.docs.dir}"> - <fileset dir="${source.documentation.dir}"></fileset> - </copy> - <copy todir="${webapp.root.dir}"> - <fileset dir="${source.webapp.dir}"></fileset> - </copy> - </target> - - <!-- ========================================================================== --> - - <target name="webapp.docs" depends="webapp.prepare"> + <target name="javadoc" description=" Create the API documentation"> <!-- copy all sources into one biiiiig directory --> <mkdir dir="${webapp.docs.dir}/javadoc"/> <copy todir="${build.documentation.dir}"> @@ -186,18 +169,9 @@ <srcfiles dir= "${build.documentation.dir}" includes="**/*.java"/> <mapper type="merge" to="${webapp.docs.dir}/javadoc/index.html"/> </uptodate> - <antcall target="javadoc"/> + <antcall target="javadoc.generate"/> </target> - <!-- ========================================================================== --> - - <target name="webapp.root" depends="webapp.prepare,archive.startup,archive.runtime,kernel.components"> - <mkdir dir="${webapp.root.dir}/WEB-INF/lib"/> - <mkdir dir="${webapp.root.dir}/WEB-INF/kernel"/> - <copy todir="${webapp.root.dir}/WEB-INF/lib" file="${build.dir}/${jar.startup}"/> - <copy todir="${webapp.root.dir}/WEB-INF/kernel" file="${build.dir}/${jar.runtime}"/> - </target> - <!-- =========================================================================== + | Kernel related tasks | + ============================================================================ --> @@ -228,6 +202,35 @@ </target> <!-- =========================================================================== + + | Web-Application generation | + + ============================================================================ --> + + <target name="webapp.prepare" depends="prepare"> + <mkdir dir="${webapp.docs.dir}"/> + <mkdir dir="${webapp.root.dir}"/> + </target> + + <!-- ========================================================================== --> + + <target name="webapp.root" depends="webapp.prepare,archive.startup,archive.runtime,kernel.components"> + <copy todir="${webapp.root.dir}"> + <fileset dir="${source.webapp.dir}"></fileset> + </copy> + <mkdir dir="${webapp.root.dir}/WEB-INF/lib"/> + <mkdir dir="${webapp.root.dir}/WEB-INF/kernel"/> + <copy todir="${webapp.root.dir}/WEB-INF/lib" file="${build.dir}/${jar.startup}"/> + <copy todir="${webapp.root.dir}/WEB-INF/kernel" file="${build.dir}/${jar.runtime}"/> + </target> + + <!-- ========================================================================== --> + + <target name="webapp.docs" depends="webapp.prepare"> + <copy todir="${webapp.docs.dir}"> + <fileset dir="${source.documentation.dir}"></fileset> + </copy> + </target> + + <!-- =========================================================================== + | Global and generic tasks | + ============================================================================ --> @@ -241,12 +244,17 @@ <!-- ========================================================================== --> - <target name="all" depends="webapp.root,webapp.docs" - description="Build all the web applications"/> + <target name="webapp" depends="webapp.root,webapp.docs" + description=" Build the web applications (excluding javadoc)"/> + + <!-- ========================================================================== --> + + <target name="all" depends="webapp,javadoc" + description="* Build the web applications (including javadoc)"/> <!-- ========================================================================== --> - <target name="run" depends="all" description="Run the servlet environment"> + <target name="run" depends="webapp" description=" Run the servlet environment"> <java classname="org.mortbay.jetty.Server" fork="true"> <sysproperty key="java.endorsed.dirs" value="${basedir}/lib/endorsed"/> <sysproperty key="org.mortbay.util.URI.charset" value="UTF-8"/> @@ -264,13 +272,13 @@ <!-- ========================================================================== --> - <target name="clean" description="Clean interim compilation targets"> + <target name="clean" description=" Clean interim compilation targets"> <delete dir="${build.dir}"/> </target> <!-- ========================================================================== --> - <target name="distclean" depends="clean" description="Revert to checkout state"> + <target name="distclean" depends="clean" description=" Revert to checkout state"> <delete dir="${webapp.dir}"/> </target>