You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeff Turner <je...@socialchange.net.au> on 2001/04/13 13:32:29 UTC

[C1][PATCH] using in build.xml

Hi,

Attached is a patch for C1 build.xml, which utilizes the Ant1.3 <uptodate>
task to shortcut the "javadocs", "docs" and "printer-docs" targets if
their source files have not changed.

This patch takes into account the slightly weird preparation step, where
todo.xml and changes.xml are copied, and book.xml overwritten.

If it is determined that the target is up-to-date, then a message is
printed, eg:

init:
     [echo]       ------------------- Cocoon 1.8.3-dev [1999-2001] ---------

prepare-docs:
   [delete] Deleting: /home/jeff/apache/xml/xml-cocoon/xdocs/book.xml
     [copy] Copying 1 file to /home/jeff/apache/xml/xml-cocoon/xdocs

docs_check:

docs_done:
     [echo] -------------------------------------------------------------
     [echo] Not rebuilding docs, as they are up-to-date:
     [echo]   ./build/docs/index.html is more recent than
     [echo]   todo.xml, changes.xml, non-generated ./xdocs/*.xml
     [echo] -------------------------------------------------------------

docs:

BUILD SUCCESSFUL


If this is deemed useful, I can create a similar patch to C2 build.xml.

--Jeff