cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject [C1][PATCH] using <uptodate> in build.xml
Date Fri, 13 Apr 2001 11:32:29 GMT
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

Mime
View raw message