cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Lavoie <philippe.lav...@cactus.ca>
Subject ant doesn't accept two stylebooks (bug?)
Date Wed, 19 Jan 2000 20:15:50 GMT

I'm doing some tests with stylebook (good shit by the way).

My first hurdle is that I have a lot of directories, each needs his own menu
on the left. I'm doing something like this with ant

 <target name="docs-project" depends="docs-project-convert">
    <mkdir dir="${build.project.docs}"/>
    <copyfile src="${docs.project.dir}/docs-book.xml"
dest="${sbk.project.docs}/book.xml"/>
    <java class="${doc.generator}"
args="targetDirectory=${build.project.docs} ${sbk.project.docs}/book.xml
{style}"/>
  </target>

  <!-- ===================================================================
-->
  <!-- Generate HTML docs
-->
  <!-- ===================================================================
-->
  <target name="docs" depends="docs-convert, docs-project">
    <mkdir dir="${build.docs}"/>
    <copyfile src="${docs.dir}/docs-book.xml" dest="${sbk.docs}/book.xml"/>
    <java class="${doc.generator}" args="targetDirectory=${build.docs}
${sbk.docs}/book.xml ${style}"/>
  </target>

The docs-project target is built without any problems but the docs target
returns the following

[StyleBook] All done successfully
Executing Target: docs
Calling org.apache.stylebook.StyleBook
[StyleBook] Overriding targetDirectory="./docs" (Old=".")
BUILD FATAL ERROR: java.lang.Error: factory already defined


Any help would be appreciated. Thanks

Phil

PS perhaps there is a better way ?   I noticed that xml-site uses bat
scripts to generate the docs I'll 
use that in the meantime.

Mime
View raw message