> From: Peter Donald [mailto:[EMAIL PROTECTED]] 
>
> Even worse, it has held up building/releasing distributions 
> several times. 
> Some of our distributions even had like 13 meg of cocoon and 
> 1 meg of actual 
> project. Add into the mix such wonderful features as;
> * taking ages to build simple site (is it below 3 minutes yet?)
> * spammy output that makes it impossible to read build script
> * massive distribution of unreleased cocoon builds
> * confusing setup (.uris vs sitebook vs xml pages vs xsl pages)
> * baroque setup and hacks seem regular (ie replace hacks that 
>   Paul did for URIs or that stupid .uris files)
> ...

I think these are the most important reasons not to use Cocoon.

My first contact with our doc-building environment was a definite
turn-off. A lot of copying and filtering and incomprehensibilities.

I switched to Anakia and it worked instantly with not problems
at all.

Just like Peter I think that a <cocoon/> task in Ant would be the 
optimal. Actually, I can not think of anything else that would
be usable in the long run if we go for Cocoon.

Face it, the way Cocoon doc generation is done now makes it
unmaintainable.

Just a simple thought on what can be done to make it more viable:

Factor out all cocoon related ant "code" to a separate build file
that is kept in the excalibur or Avalon root. cocoon-docs.xml.

Then use the <ant/> command with parameters to call a target in 
this file.

The major thing leading to unmaintainability is that *all* code
required to run Cocoon is duplicated in *every* project.

I'd like to be able to do:

  <ant antfile="../docs.xml"/>

And that should be it. The docs.xml should take all my xdocs from
src/xdocs and create a nice doc bundle in build/docs. This should at 
least fix the "baroque setup and hacks seem regular (ie replace hacks 
that Paul did for URIs or that stupid .uris files)" problem. Or keep it
in a single location.

 + Some of our distributions even had like 13 meg of cocoon and 
   1 meg of actual project.

Major one here. Yes, Cocoon should be stripped down to essentials.
The Cocoon distro is a massive do-everything package (it even includes
HypersonicSQL, which isn't vital at all to Cocoon). What is the most
minimal Cocoon package possible?

 + taking ages to build simple site (is it below 3 minutes yet?)

Cocoon is fast on my fast machine. But that's not really a solution
is it?

 + spammy output that makes it impossible to read build script

Yep. Can we limit the log level to WARN or ERROR? There are many 
places in Cocoon where, for example, the lookup() method is used
instead of the hasComponent() method. Thus you get a WARN and a
huge stack trace even though nothing is wrong. But this is something
that can be fixed.

 + massive distribution of unreleased cocoon builds

Minimal distro, as described above.

 + confusing setup (.uris vs sitebook vs xml pages vs xsl pages)

I'm sure we can do something about that.


The above is, as you probably all think, a load of handwaving and
not very much of actual work by me.

But, Peter, Berin, if this could be made to work, would it be
acceptable for both of you?

/LS


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to