Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 83610 invoked from network); 24 Feb 2005 09:48:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Feb 2005 09:48:12 -0000 Received: (qmail 59652 invoked by uid 500); 24 Feb 2005 09:48:11 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 59622 invoked by uid 500); 24 Feb 2005 09:48:11 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 59607 invoked by uid 99); 24 Feb 2005 09:48:11 -0000 X-ASF-Spam-Status: No, hits=-9.3 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,WEIRD_PORT X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 24 Feb 2005 01:48:11 -0800 Received: (qmail 83577 invoked from network); 24 Feb 2005 09:48:10 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 24 Feb 2005 09:48:10 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__YourCocoonBasedProjectAnt16?= Date: Thu, 24 Feb 2005 09:48:09 -0000 Message-ID: <20050224094809.83563.70638@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2005-02-24T01:48:09 Editor: StenAkselHeien Wiki: Cocoon Wiki Page: YourCocoonBasedProjectAnt16 URL: http://wiki.apache.org/cocoon/YourCocoonBasedProjectAnt16 no comment Change Log: ---------------------------------------------------------------------------= --- @@ -9,19 +9,27 @@ 1. edit build-cocoon-targets.xml and replace "YourCocoonBasedProject" wit= h your project name 1. 'seed' the project 1. {{{ant -f build-cocoon-targets.xml -Dcocoon.distro.home=3D/path/to/= your/cocoon/distribution}}} - 2. Note: the cocoon.distro.home is now set in user.properties - 3. Note for windows users: set the slashes as forward slashes - 1. customize the src/cocoon/local.build.properties and remove the path va= riables in this file (ant cannot substitute variables in property files, so= ${...} variables would cause build errors). Remove sections build, build w= ebapp, src, standalone demo, dir layout, tools, deprecated, ide, lib, dist,= site, legal, gump, so that there are no more ${...} and variables in this = file. - 1. exclude all blocks you don't need in the top part of local.build.prope= rties -> exclude the samples and documentation too if you don't need them (= time consuming build process). - 1. ant cocoon:get -> This will only be done when changing the distributio= n or the settings in local.build.properties - 1. ant webapp -> builds the Java classes and copies the entire project to= the tools tree, Note: classes are built with debug flag on. - 1. ant cocoon:run -> restart when step 8 has done any of the following: c= hanging the libs, java compile + * Note: the cocoon.distro.home is now set in user.properties + * Note for windows users: set the slashes as forward slashes + 1. customize the src/cocoon/local.build.properties + 1. important: remove the path variables in this file (ant cannot subst= itute variables in property files, so ${...} variables would cause build er= rors). Remove sections build, build webapp, src, standalone demo, dir layou= t, tools, deprecated, ide, lib, dist, site, legal, gump, so that there are = no more ${...} and variables in this file. + 1. set include to false for the blocks you don't need in the top part = of local.build.properties (remove # in front of line) + 1. exclude the samples and documentation too if you don't need them (t= ime consuming build process)(remove # in front of line). + 1. ant cocoon:get + * -> repeat this step later when changing the distribution or the sett= ings in local.build.properties + 1. ant webapp + * -> builds the Java classes and copies the entire project to the tool= s tree + * Note: classes are built with debug flag on. + 1. ant cocoon:run = + * starts Jetty + * (you need to restart if you have done any of the following: changing= the libs, java compile) 1. http://localhost:8888/ - 1. cvs check-in to check your (now still empty project) in in the CVS + 1. cvs check-in to check your (now still empty project) in the CVS 1. add your project to Eclipse - 1.# set src to src/java - 1.# set output folder to build/classes - 1. use [:XPatchTaskUsage] to modify the Cocoon configuration files. -> No= te: you can use cocoon:unpatch to revert the configuration files back to th= e original versions. + 1. set src to src/java + 1. set output folder to build/classes + 1. use [:XPatchTaskUsage] to modify the Cocoon configuration files. = + * -> Note: you can use cocoon:unpatch to revert the configuration file= s back to the original versions. = Once this is setup use the src/java tree for your own customized Java comp= onents and src/cocoon/webapp/your!ProjectName for your Cocoon related files= (sitemap, XSL and XML files etc.). Ant webapp will compile your classes an= d copy the files in the src tree to the appropriate places in the tools tre= e. Jetty (ant cocoon:run) will use the files in the tools tree. =20