Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 96175 invoked from network); 2 Apr 2008 14:06:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 14:06:40 -0000 Received: (qmail 33111 invoked by uid 500); 2 Apr 2008 14:06:37 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33057 invoked by uid 500); 2 Apr 2008 14:06:37 -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 33041 invoked by uid 99); 2 Apr 2008 14:06:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 07:06:37 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 14:05:54 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jh3bF-0005HV-Pm for users@cocoon.apache.org; Wed, 02 Apr 2008 14:06:02 +0000 Received: from 213-140-16-176.fastres.net ([213.140.16.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 14:06:01 +0000 Received: from lmorandini by 213-140-16-176.fastres.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Apr 2008 14:06:01 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Luca Morandini Subject: Re: [2.2] Built-in properties available in the sitemap Date: Wed, 02 Apr 2008 16:05:47 +0200 Lines: 41 Message-ID: References: <674D880A-51B2-4068-AFF9-EB38EC0263F2@reverycodes.com> <5F2C54F9-7D8C-4795-A0A6-F9116AC1D152@reverycodes.com> <0B6530D5-F8E2-4597-AB9A-D7B3493D5D1C@reverycodes.com> Reply-To: lmorandini@ieee.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213-140-16-176.fastres.net User-Agent: Thunderbird 2.0.0.12 (X11/20080226) In-Reply-To: <0B6530D5-F8E2-4597-AB9A-D7B3493D5D1C@reverycodes.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Vadim Gritsenko wrote: > On Apr 2, 2008, at 2:28 AM, Luca Morandini wrote: >> >> IIUC, Cocoon doesn't add properties of its own (bar the ones defined >> in blocks). >> Hence we can just put a reference to Maven properties, an example of >> how to use them in the sitemap and we're done, right ? > > No. > > I'd imagine this would work only if somebody to use Cocoon installed > into Jetty started from Maven. Sadly, I am not able even to "see" the Maven properties when starting Jetty from Maven: raises: Caused by: org.apache.commons.jxpath.JXPathException: No value for xpath: project.version (java.home works though). Any clue ? > I also can not imagine anyone using Maven > deployed into production environment, and I heard that Tomcat is also a > popular production deployment environment ;-) Sure, but some properties are useful at build-time as well (say you want to produce a README.xml with the the block version number in it). Regards, -------------------- Luca Morandini www.lucamorandini.it -------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org