cmlenz 2003/01/13 02:41:52
Modified: documentation build.xml
Log:
Make generation of the CVS change log conditional, depending on whether an
internet connection is available.
Revision Changes Path
1.26 +23 -2 jakarta-cactus/documentation/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/documentation/build.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- build.xml 12 Jan 2003 17:46:36 -0000 1.25
+++ build.xml 13 Jan 2003 10:41:52 -0000 1.26
@@ -117,6 +117,15 @@
<tstamp/>
+ <condition property="offline">
+ <or>
+ <isset property="offline"/>
+ <not>
+ <http url="http://www.apache.org/"/>
+ </not>
+ </or>
+ </condition>
+
<!-- Filters -->
<filter token="version" value="${project.version}"/>
<filter token="year" value="${year}"/>
@@ -129,13 +138,20 @@
Generate the documentation
========================================================================
-->
- <target name="doc" depends="init">
+ <target name="doc.prepare"
+ depends="init">
<mkdir dir="${target.xdoc.dir}"/>
<mkdir dir="${target.doc.dir}"/>
<mkdir dir="${target.doc.dir}/images"/>
- <!-- Generate cvs log -->
+ </target>
+
+ <target name="doc.cvschangelog"
+ depends="doc.prepare"
+ unless="offline">
+
+ <!-- Generate CVS log -->
<mkdir dir="${target.xdoc.dir}/cvslog"/>
<cvschangelog dir="${doc.xdoc.dir}"
usersfile="${doc.xdoc.dir}/cvslog/users.properties"
@@ -150,6 +166,11 @@
<include name="**/*.xml"/>
</fileset>
</cvschangelog>
+
+ </target>
+
+ <target name="doc"
+ depends="doc.cvschangelog">
<!-- Copy all files that may contain token filters or that are not
binary files -->
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>