I'm describing the scenario below using the released version of 1.4. It
applies equally to the latest CVS. It also represents a change in behavior
from Ant 1.3.
Test case:
Download ant 1.4 distribution. Unpack. Set path and ANT_HOME.
Checkout jakarta-site2. Cd into the directory.
Execute "ant" with no arguments.
Results:
Buildfile: build.xml
prepare:
prepare-error:
docs:
[anakia] Transforming into: D:\jakarta\jakarta-site2\docs
[anakia] Error: org.jdom.JDOMException: Error in building: SAX2 driver
class org.apache.xerces.parsers.SAXParser not found
BUILD FAILED
D:\jakarta\jakarta-site2\build.xml:44: org.jdom.JDOMException: Error in
building: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
Total time: 2 seconds
Apply the following patch:
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-site2/build.xml,v
retrieving revision 1.7
diff -u -r1.7 build.xml
--- build.xml 2001/07/27 18:54:01 1.7
+++ build.xml 2001/09/20 16:11:53
@@ -31,7 +31,7 @@
<!-- This Target is for output of HTML pages for the web site -->
<target name="docs" depends="prepare-error" if="AnakiaTask.present"
description="Render HTML Pages via Anakia">
- <taskdef name="anakia"
+ <taskdef name="anakia" reverseLoader="true"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="classpath"/>
</taskdef>
Try again:
Buildfile: build.xml
prepare:
prepare-error:
docs:
[taskdef] The reverseloader attribute is DEPRECATED. It will be removed
[anakia] Transforming into: D:\jakarta\jakarta-site2\docs
[anakia] Input: index.xml
[anakia] Output: D:\jakarta\jakarta-site2\docs\index.html
- Sam Ruby