You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "David M. Karr" <dk...@tcsi.com> on 2000/08/23 18:38:25 UTC

doc/appdev/sample/build.xml non-well-formed, and not ANT-compatible

Perhaps no one else bothers with this, but I'm actually trying to
build and run the demos and examples in the Tomcat distribution.

I find that the file $TOMCAT_HOME/doc/appdev/sample/build.xml has at
least two fatal problems with it.  One is a simple syntax error, and
the other is an incompatibility with the ANT DTD (perhaps it is simply
out of date).

This is an excerpt from this file that shows both problems:

----------------------
  <property name="app.name"       value="myapp"
  <property name="deploy.home"    value="${tomcat.home}/webapps/${app.name}"/>
  <property name="dist.home"      value="${deploy.home}"/>
  <property name="dist.src"       value="${app.name}.jar"/>
  <property name="dist.war"       value="${app.name}.war"/>
  <property name="javadoc.home"   value="${deploy.home}/javadoc"/>


  <target name="prepare" init="init">
----------------------

1. The first line is missing an ending "/>".
2. The "target" element (as of ANT1.1) does not have an "init"
   attribute.

-- 
===============================================================================
David M. Karr     ; dkarr@tcsi.com  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)