You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Philippe Lavoie <ph...@cactus.ca> on 2000/01/19 21:15:50 UTC
ant doesn't accept two stylebooks (bug?)
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.
Re: ant doesn't accept two stylebooks (bug?)
Posted by Stefano Mazzocchi <st...@apache.org>.
Pierpaolo Fumagalli wrote:
>
> Philippe Lavoie wrote:
> >
> > I'm doing some tests with stylebook (good shit by the way).
> >
> > BUILD FATAL ERROR: java.lang.Error: factory already defined
> >
> > Any help would be appreciated. Thanks
>
> Hmmm... It means that someone else is using the
> URLStreamHandlerFactory... SHIT!!
You are.
If you call Stylebook twice on the same JVM...
Anyway, that URL factory limitation _really_ sucks.
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Come to the first official Apache Software Foundation Conference!
------------------------- http://ApacheCon.Com ---------------------
Re: ant doesn't accept two stylebooks (bug?)
Posted by Pierpaolo Fumagalli <pi...@apache.org>.
Philippe Lavoie wrote:
>
> I'm doing some tests with stylebook (good shit by the way).
>
> BUILD FATAL ERROR: java.lang.Error: factory already defined
>
> Any help would be appreciated. Thanks
Hmmm... It means that someone else is using the
URLStreamHandlerFactory... SHIT!!
Pier
--
--------------------------------------------------------------------
- P I E R -
stable structure erected over water to allow the docking of seacraft
<ma...@betaversion.org> <http://www.betaversion.org/~pier/>