Return-Path: Delivered-To: apmail-xml-cocoon-docs-archive@xml.apache.org Received: (qmail 27524 invoked by uid 500); 30 Jun 2003 06:59:55 -0000 Mailing-List: contact cocoon-docs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-docs@xml.apache.org Delivered-To: mailing list cocoon-docs@xml.apache.org Received: (qmail 27506 invoked from network); 30 Jun 2003 06:59:55 -0000 Received: from dobit2.ugent.be (HELO dobit2.rug.ac.be) (157.193.42.8) by daedalus.apache.org with SMTP; 30 Jun 2003 06:59:55 -0000 Received: from allserv.UGent.be (allserv.ugent.be [157.193.40.42]) by dobit2.rug.ac.be (8.12.8/8.12.8) with ESMTP id h5U706b9029068 for ; Mon, 30 Jun 2003 09:00:06 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (otsrv1.iic.ugent.be [157.193.121.51]) by allserv.UGent.be (8.12.8/8.12.8) with ESMTP id h5U7060E019346 for ; Mon, 30 Jun 2003 09:00:06 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (localhost [127.0.0.1]) by otsrv1.iic.rug.ac.be (8.11.6/8.11.6) with ESMTP id h5U705x23334 for ; Mon, 30 Jun 2003 09:00:05 +0200 Date: Mon, 30 Jun 2003 09:00:05 +0200 Message-Id: <200306300700.h5U705x23334@otsrv1.iic.rug.ac.be> From: stevenn@outerthought.org To: cocoon-docs@xml.apache.org Subject: [WIKI-UPDATE] YourCocoonBasedProject MarcPortier Mon Jun 30 09:00:05 2003 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Page: http://wiki.cocoondev.org/Wiki.jsp?page=YourCocoonBasedProject , version: 7 on Mon Jun 30 06:48:21 2003 by MarcPortier + !About + - themselves are being build in the new build system. + themselves are being build in the new (as of cocoon 2.1) build system. ? +++++++++++++++++++ - ''Disclaimer:'' Limited shelf life of this: investigating how this could be useful in a 2.0.x or even early 2.1 is TBD. Most if not all of this will probably stop being relevant when [Blocks] are getting what they are intended to be. (See [BlocksDefinition] for that) ? ------------------ + ''Disclaimer:'' Limited shelf life of this: while the described ideas should work for anything starting the 2.1M* releases, investigating how this could be useful in a 2.0.x is TBD. Most if not all of this will probably stop being relevant when [Blocks] are getting what they are intended to be. (See [BlocksDefinition] for that) ? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - \\Some suggestions: - * Add Linux friendly versions of the simple batch files - * Complete the list of tricks in [XPatchTaskUsage] - * ... your own? + ---- + !The works - +- etc - +- cocoon ? --- + +- cocoon - +- *.xconf: - ! using xpatch-task syntax to augment the cocoon.xconf - +- local.blocks.properties ? -- ^^^^ + +- local.build.properties ? ++ ^ - ! block and build customization file as suggested in the cocoon ? -- + ! block and build customization file as suggested in the cocoon - ! install and readme files, to include only those blocks your ? -- + ! install and readme files, to include only those blocks your - ! project will need ? -- + ! project will need + +- webapp + +- xconf + +- *.xconf, *.xweb, *.xmap, *.xlog: + ! using xpatch-task syntax to augment the xml config files: + ! cocoon.xconf, web.xml, sitemap.xmap resp. logkit.xconf - +- build.properties: ? - ^^^ + +- user.properties: ? ^^^ - ! specifies cocoon-dist.home of distribution to use + ! specifies cocoon-dist.home of distribution to use in your local case ? +++++++++++++++++++ - @echo off + @echo off ? + - ? ---- + ? ++++ - ? ---- + ? ++++ - The remaining thing now is to actually create your own webapp based on the one that was pulled in with the get_cocoon (you would typically only call this get_cocoon when you want to upgrade / switch to another Cocoon distribution) ? ^^ ^ ---- ^ + The remaining thing now is to actually create your own webapp based on the one that was pulled in with the {{ant cocoon.get}} (you would typically only call this cocoon.get when you want to upgrade or switch to another Cocoon distribution) ? ^^^^ ^ ++++++ ++++ ^^ + + + Patching ${cocoon.patch.target} with + ${cocoon-xconf.dir}/*.${cocoon.patch.src-extension} ... + + + - - - Patching webapp.. - - Building webapp.. - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - ? ^ + ? ^^ - In combination with the xconf-patch-file in the ${src.cocoon} directory. ? ---- + In combination with the xconf-patch-files in the ${cocoon-xconf.dir} directory. ? + ++++++++++ + - For more advanced usage of this patching mechanism there is a separate Wiki page foreseen: [XPatchTaskUsage] + + For a more complete usage of this patching mechanism see [XPatchTaskUsage] -- ''(thx to [GeoffHoward])'' - Some people have asked how to do the patching based on values of system properties, haven't really tried this myself but you might consider creating your xconf files on the fly with a trick like this ? ^ ------- ----------- ----------- ^^^^^ + Some people have asked how to do the patching based on values of system properties. For this you can consider creating your xconf files on the fly with a trick like this: ? ^ ++ ^^^ + - ? ---- + - ? ---- + - ? ---- + - Completion: (as checked with Geoff) this works allright, but you have to make sure that the property to be substituted has a value set. If not the property-substitution will stay unchanged. And then Geoff is very right in saying that the xpatch task will not be doing that ? ^ ^^^ + Completion: (as checked with Geoff) this works allright. However: you have to make sure that the property to be substituted has a value set. If not the property-substitution will stay unchanged. And then Geoff is very right in saying that the xpatch task will not be doing that ? ^ ^^^^^^^^^ - a file mypatch.xconf in the directory ${src.xconf} + Have a @token@ inside your file mypatch.xconf - together with copy-token-filtering support of ant: ? ^^^ ------ + and use the copy-token-filtering support of ant: ? ^^^^^^ + - I recently automated some more of this in a set of ant-tasks that you can include in your own project's build.xml. + I recently automated some more of this in a packaged set of ant-tasks that you can include in your own project's build.xml. ? +++++++++ - It defers with the above only in details (and it should work for linux as well) + It defers with the above only in details (and it should work for linux as well, please fix/comment if it doesn't) ? ++++++++++++++++++++++++++++++++++ Page: http://wiki.cocoondev.org/Wiki.jsp?page=MarcPortier , version: 10 on Mon Jun 30 06:51:05 2003 by MarcPortier + * [YourCocoonBasedProject] - * [YourCocoonBasedProject] + * none ATM + * [XPatchTaskUsage] -- added by [GeoffHoward] - * [XPatchTaskUsage] + * [Woody]