You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jason Dusek <ja...@gmail.com> on 2005/10/17 00:06:04 UTC

Where to put a generator

is putting my own class/package/jar in WEB-INF a good or bad idea?
i've managed to keep all my documents out of COCOON_HOME by using the
mount-table.xml file. it would be nice if i keep my java sources
somewhere seperate as well, as i don't want them to get entangled with
the cocoon build process.
--
_jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Where to put a generator

Posted by David Legg <da...@searchevent.co.uk>.
Hi Jason,

> it would be nice if i keep my java sources
> somewhere seperate as well, as i don't want them to get entangled with
> the cocoon build process.

I've been down the same road as you.

Like you I wondered how to keep my code seperate from Cocoon's.  There are 
many good reasons for attempting this but the main one is to reduce the 
trauma involved every time a new release of Cocoon emerges.

My solution was to create an Ant task which merged bits of Cocoon with bits 
of my project and placed the resulting hybrid in a 'testing' directory.  It 
works, but isn't very optimal.  For example, if I edit 'my' sitemap I can't 
get Cocoon to auto-load it until I've run the ant task to copy the edited 
version into the testing directory.

Well... this was obviously a common concern because at the last Cocoon get 
together they announced the 'Brick' example.  See 
http://www.cocoongt.org/Slides-and-recordings.html for a PDF and download 
the lecture audio by Bertrand Delacretaz called "Cocoon Bricks: best 
practices by example".

As well as a lot of common sense the Brick example comes with an Ant based 
build system that should address both your and my needs.

Regards,
David Legg



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org