Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 38372 invoked from network); 24 May 2007 15:35:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 15:35:59 -0000 Received: (qmail 51165 invoked by uid 500); 24 May 2007 15:35:50 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 51067 invoked by uid 500); 24 May 2007 15:35:50 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 51043 invoked by uid 99); 24 May 2007 15:35:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 08:35:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [88.198.46.98] (HELO indoqa.com) (88.198.46.98) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 08:35:39 -0700 Received: from [10.4.1.249] (unknown [86.59.20.138]) by indoqa.com (Postfix) with ESMTP id 2E21E254066 for ; Thu, 24 May 2007 17:42:03 +0200 (CEST) Message-ID: <4655B0B1.4050303@apache.org> Date: Thu, 24 May 2007 17:35:13 +0200 From: Reinhard Poetz User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Custom Cocoon 2.2 projects: Alternatives to Maven 2 References: <3b3449e00705150247l3404f36xf14ccdf08497eafd@mail.gmail.com> <464EF0D1.90201@apache.org> <3b3449e00705211222o7b4a1336y922f25aff47582c8@mail.gmail.com><3b3449e00705211222o7b4a1336y922f25aff47582c8@mail.gmail.com> <4651F77A.4060100@apache.org> <4652B443020000D400005E4D@cs-emo.csir.co.za><4652B443020000D400005E4D@cs-emo.csir.co.za> <4652A07F.2030304@apache.org> <4652DB14020000D400005E8B@cs-emo.csir.co.za> <4652DA1F.7080408@apache.org> <46535454.5040805@gmx.de> <465463FF.8070200@apache.org> <4654664E.9050704@apache.org> <46546D38.7030700@apache.org> <46547AFB.209@apache.org> In-Reply-To: <46547AFB.209@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Carsten Ziegeler wrote: > If someone can document the steps (which we should do anyway) I can try > and come up with the ant script. I've started with a prototyp of a non-Maven Cocoon 2.2 archetype. You can download it from http://people.apache.org/~reinhard/cocoon-22-bootstrap.zip. It contains a build.xml that has two targets: - webapp Build a web application - run Starts the webapp using Jetty Some words to the directory structure: [root] +-src | +-webapp The Cocoon web application | +-block1 A Cocoon demo block +-lib All required libraries and Cocoon blocks +-jetty Minimum files to run a Jetty 6.1.3 instance +-build.xml The Ant build script The Ant build is only a starting point but it shows how things are supposed to work together. It works well for me but it misses two important things in order to be useful for others: 1) make it simple to add just another _own_ block (adding a third-party block only means copying the libs into ./lib) 2) create a properties file that configures all servlet services to use the src/block1/src/main/resources/COB-INF files as block contexts Having this feature allows working on the sources with support for hot reload. I think the build script shouldn't do much more because if people prefer to use Ant, they have their own way of building/deploying their Java applications anyway. Using this build script as template for that purpose, should give them a enough ideas to integrate it into their own build and deployment architectures. WDYT? Feedback, not only from Carsten, is much appreciated! -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org