You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/02/01 07:40:18 UTC
cvs commit: jakarta-commons/latka build.xml
dion 02/01/31 22:40:18
Modified: latka build.xml
Log:
Fixed javadoc target to only run when source code has been changed.
Updated copyright for javadoc
Revision Changes Path
1.28 +16 -3 jakarta-commons/latka/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/latka/build.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- build.xml 31 Jan 2002 12:26:09 -0000 1.27
+++ build.xml 1 Feb 2002 06:40:18 -0000 1.28
@@ -1,4 +1,4 @@
-<!-- $Id: build.xml,v 1.27 2002/01/31 12:26:09 dion Exp $ -->
+<!-- $Id: build.xml,v 1.28 2002/02/01 06:40:18 dion Exp $ -->
<project name="commons-latka" default="build-java" basedir=".">
<!-- patternset describing files to be copied from the doc directory -->
@@ -170,7 +170,20 @@
<!-- FIXME: Update task to only run if java files are more recent
than the current html, and work off original sources
-->
- <target name="doc-javadoc" depends="init" if="available-src-java">
+ <target name="check-javadoc" depends="init">
+ <condition property="javadoc-required">
+ <and>
+ <equals arg1="${available-src-java}" arg2="true"/>
+ <not>
+ <uptodate targetfile="${dest.doc.api}/packages.html">
+ <srcfiles dir="${source.src.java}" includes="**/*.java" />
+ </uptodate>
+ </not>
+ </and>
+ </condition>
+ </target>
+
+ <target name="doc-javadoc" depends="init,check-javadoc" if="javadoc-required">
<!-- copy all the non-test sources out to the work directory and javadoc that -->
<mkdir dir="${workdir}"/>
<copy todir="${workdir}">
@@ -185,7 +198,7 @@
destdir="${dest.doc.api}"
windowtitle="${Name-Long}"
doctitle="${Name-Long}"
- bottom="<small>Copyright &copy; 2001 Apache Software Foundation. Documenation generated ${TODAY}</small>."
+ bottom="<small>Copyright &copy; 2001-2002 Apache Software Foundation. Documenation generated ${TODAY}</small>."
protected="true"
version="true"
author="true"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>