I'm trying to use the CocoonTask from ant and when I include the load-class element in the cocoon target I get the following error.  Below is my build.xml.
 
BUILD FAILED
C:\vets\build.xml:10: Class org.apache.cocoon.CocoonTask$ElementWrapper doesn't support nested text data.
 
Is this a bug or should I be loading database driver classes differently with ant?
 
Thanks,
Corey
 
<project default="generate" basedir=".">
 <property name="cocoon.context" value="/cocoon-2.1.4/build/webapp"/>
 <path id="cocoon.classpath">
  <dirset dir="${cocoon.context}/WEB-INF/classes"/>
  <fileset dir="${cocoon.context}/WEB-INF/lib" includes="*.jar"/>
 </path>
 <taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask" classpathref="cocoon.classpath"/>
 <target name="generate">
  <cocoon verbose="true" classpathref="cocoon.classpath" follow-links="true" precompile- confirm-extensions="false" context-dir="${cocoon.context}" config-file="WEB-INF/cocoon.xconf" work-dir="build/work" dest-dir="build/dest" default-filename="hello.html" accept="*/*">
   <broken-links type="xml" file="brokenlinks.xml" generate="false" extension=".err"/>
   <load-class>sun.jdbc.odbc.JdbcOdbcDriver</load-class>
   <logging log-kit="${cocoon.context}/WEB-INF/logkit.xconf" logger="cli" level="DEBUG"/>
   <uris name="vets" follow-links="true">
    <uri type="append" src-prefix="vets/" src="" dest="C:\mets"/>
   </uris>
  </cocoon>
 </target>
</project>

Reply via email to