Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 58133 invoked from network); 31 May 2005 13:14:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2005 13:14:27 -0000 Received: (qmail 86206 invoked by uid 500); 31 May 2005 13:14:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 86016 invoked by uid 500); 31 May 2005 13:14:21 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 85965 invoked by uid 99); 31 May 2005 13:14:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from www.kuhnle.net (HELO dragon.kuhnle.net) (217.160.191.16) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 May 2005 06:14:19 -0700 In-Reply-To: <429BD354.9060406@reverycodes.com> To: dev@cocoon.apache.org Subject: Re: XSP: EclipseJavaCompiler chokes on warings MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 From: Jochen Kuhnle Message-ID: Date: Tue, 31 May 2005 14:20:41 +0200 X-MIMETrack: Serialize by Router on Dragon/KuhnleNet(Release 6.5.3|September 14, 2004) at 05/31/2005 15:14:19, Serialize complete at 05/31/2005 15:14:19 Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Vadim Gritsenko wrote on 31.05.2005 05:00:36: > Jochen Kuhnle wrote: > > Hi, > > > > the EclipseJavaCompiler chokes on warnings, resulting in the XSP not > > working. This is because in line 365 (cocoon-2.1.8-dev), it checks against > > "result.hasProblems()" instead of "result.hasErrors()". I'd like to > > propose an option so the compiler ignores warnings and fails only if there > > are errors. However, there is more than one way to do this, so 'd like to > > ask before I create a patch: > > > > 1. Add a property "setIgnoreWarnings" to LanguageCompiler, configure the > > property in the "programming-language" section of cocoon.xconf and have > > CompiledProgrammingLanguage set it. > > > > 2. Avalonize the Compiler itself and make it configurable. > > > > 3. Other suggestions? > > Why not dump warnings into the log file (as WARNings), and stop only > on errors - > will this be possible? This gives us three warning handling states: ignore, log and fail. I would like to keep the current behaviour, because if the user does not want to tolerate warnings, he has the "fail hard and fast" option and immediatly gets an error page. On the other hand, if he has decided to "live with warnings", we should make it possible for him to prevent log cluttering. This can be part of the configurable options, but I'd like to have your opinions on how to make the compiler configurable, by option 1. or 2.? Regards, Jochen