From dev-return-25242-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Thu Aug 03 08:18:52 2006 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 71432 invoked from network); 3 Aug 2006 08:18:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 08:18:51 -0000 Received: (qmail 64817 invoked by uid 500); 3 Aug 2006 08:18:50 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 64773 invoked by uid 500); 3 Aug 2006 08:18:50 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 64762 invoked by uid 99); 3 Aug 2006 08:18:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 01:18:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.41.184.24] (HELO masagroup.net) (213.41.184.24) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Aug 2006 01:18:49 -0700 Received: (qmail 8293 invoked by uid 1001); 3 Aug 2006 08:18:26 -0000 Received: from 172.18.0.25 by webftp (envelope-from , uid 64011) with qmail-scanner-1.25 (f-prot: 4.5.3/3.16.1. spamassassin: 3.0.2. Clear:RC:1(172.18.0.25):. Processed in 0.505011 secs); 03 Aug 2006 08:18:26 -0000 Received: from unknown (HELO ?172.18.0.25?) (172.18.0.25) by imap.dmz.masagroup.net with SMTP; 3 Aug 2006 08:18:26 -0000 Message-ID: <44D1B14E.2010408@free.fr> Date: Thu, 03 Aug 2006 17:18:22 +0900 From: Mathieu Champlon User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: [jira] Closed: (FOR-913) failure when ${project.home}/forrest.properties does not exist References: <32545755.1154520074246.JavaMail.jira@brutus> <44D1742F.30408@free.fr> <44D1AB36.2010700@pcotech.fr> In-Reply-To: <44D1AB36.2010700@pcotech.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Cyriaque Dupoirieux a écrit : > I can see that there is no problem with ant, the problem comes from > cocoon, are you sure a couple of jave lines will be enough ? The exception stacktrace was quite long and I didn't include it, but at some point it goes through : ... [java] Caused by: org.apache.excalibur.source.SourceNotFoundException: file:/C:/dev/projects/xeumeuleu/build/forrest.properties doesn't exist. [java] at org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:150) [java] at org.apache.forrest.conf.ForrestConfModule.loadAntPropertiesFromURI(ForrestConfModule.java:300) ... So it's actually forrest trying to load the property file and throwing because it does not find it. Simply catching the exception in ForrestConfModule and discarding the error does the trick, that's how the other optional property files are currently handled. I can provide the patch. MAT.