Well, you may want to wait a little to see what Stefano comes up with in reworking the build process - it may make things easier.

Also, do a build -projecthelp to see if there is a built in target that does this out of the box. I think there was at some point, but don't know if it's kept up with the most recent changes.

I haven't tried this in a while with 2.1dev, but the basic roadmap would be to edit properties.xml to comment out as many blocks as desired. There are also some build properties to exclude things like javadocs, docs, and samples though you'll have to dig through build.xml to find them and experiment to see if they work as advertised.

I believe there will also be the following caveats:

1) Not everything is refactored into blocks yet, so you'll need to also remove unwanted stuff from lib/optional (remember to also edit jars.xml to remove references to anything you remove from optional). It sounds like you did this part - can you be more specific about what went wrong?
2) There are some blocks that are still required (this should get fixed) so you will have to add them back in even if you don't need them.
3) There are some blocks that bundle in things you may want to get rid of. For example, if you need the database components you need to include the database block, but that also gets you the hsql component (although excluding samples may exclude it as well) which you probably don't want. You'd then have to remove that by hand (by editing cocoon.xconf, and web.xml)
4) There will be other tricks along the way - this is an area that is still being worked out.

If you start working on this, report back specifics as you go and I or others can help move things along.

Geoff Howard

At 04:26 AM 2/19/2003, you wrote:
I've seen pages on the web on creating a minimal cocoon 2.0 setup
(only the neccecary jar files to run, a sitemap only specifying what the
app you're building needs, absolutely no cocoon samples etc. )
but haven't found one describing how to do this for the cvs development
version, cause I have to put this thing with jars and all under cvs I'd
really like to know how tho :)
what especially interests me is what is the minimal list of jar files needed,
I've tried removing everything that's originally under /optional, but then
things go wrong quite a bit.

Also I wonder what's the best way to build cocoon with as little samples
and sample related files as possible ?

Any help 'd be greatly appreciated.
        Jeroen Cranedonk

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to