Return-Path: Delivered-To: apmail-continuum-dev-archive@www.apache.org Received: (qmail 7801 invoked from network); 8 Jan 2010 06:19:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2010 06:19:46 -0000 Received: (qmail 6988 invoked by uid 500); 8 Jan 2010 06:19:46 -0000 Delivered-To: apmail-continuum-dev-archive@continuum.apache.org Received: (qmail 6887 invoked by uid 500); 8 Jan 2010 06:19:46 -0000 Mailing-List: contact dev-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list dev@continuum.apache.org Received: (qmail 6876 invoked by uid 99); 8 Jan 2010 06:19:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 06:19:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marica.tan@gmail.com designates 209.85.222.181 as permitted sender) Received: from [209.85.222.181] (HELO mail-pz0-f181.google.com) (209.85.222.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2010 06:19:35 +0000 Received: by pzk11 with SMTP id 11so10659412pzk.14 for ; Thu, 07 Jan 2010 22:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=+/GNY4uXFDpqOcOnswSsqJxuNNpv8zJTL2f+OUH+SCI=; b=V1scns7oVog5PkgYGqcxzqG0LIe1y1nOaoo99auxbsAMB+VwBxQ8DJ2o4EkgMRQdJr rUuJZqINT5ZFpMqh/BpgiU4ZPCYIHkMEFtcXRnRfkyFIkuSLNwLOgzkRUJcG/9tPFeyf X3TsrkUmrUj3yU9CGtLTRzPu8TN35TiK1uRfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hsPwXCf3aheQaRgIXBxRTFd15n/7RxxVsbsVs7h48FNVg20K+7jxwXGjI+RAbwIng0 BtP7tKPt5puCkvHUvH3Ix0ZQ1Dvc/GcvqY+yy/Rk/cbDxZ1CcbP6I5hbALaS6jZ77PHy q61oKmvTSy0WIOkBt9X5l/u8AuNvSdOg6sroQ= MIME-Version: 1.0 Received: by 10.142.250.36 with SMTP id x36mr942779wfh.176.1262931553762; Thu, 07 Jan 2010 22:19:13 -0800 (PST) In-Reply-To: <474D90BE-D0E5-42A9-A061-B8B8E530B3ED@apache.org> References: <20100108034302.2D2D22388994@eris.apache.org> <474D90BE-D0E5-42A9-A061-B8B8E530B3ED@apache.org> Date: Fri, 8 Jan 2010 14:19:13 +0800 Message-ID: Subject: Re: svn commit: r897084 - in /continuum/branches/continuum-1.3.x/continuum-webapp/src: main/java/org/apache/maven/continuum/web/action/ test/java/org/apache/maven/continuum/web/action/ test/java/org/apache/maven/continuum/web/action/stub/ From: Marica Tan To: dev@continuum.apache.org Content-Type: multipart/alternative; boundary=001636ed68e6a33e0f047ca12a87 X-Virus-Checked: Checked by ClamAV on apache.org --001636ed68e6a33e0f047ca12a87 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 8, 2010 at 1:28 PM, Brett Porter wrote: > > On 08/01/2010, at 2:42 PM, ctan@apache.org wrote: > > > - buildResult = getContinuum().getBuildResult( getBuildId() ); > > + try > > + { > > + buildResult = getContinuum().getBuildResult( getBuildId() ); > > + } > > + catch ( ContinuumException e ) > > + { > > + buildResult = null; > > + } > > Is there a need to log the exception or does it provide no value? > > No. The reason why I tried to catch the exception is so that I'll know if the user is actually trying to view the current build result. I think i'll change this. > > + > > + ConfigurationService configuration = > getContinuum().getConfiguration(); > > + > > + if ( configuration.isDistributedBuildEnabled() && > > + project.getState() == > ContinuumProjectState.BUILDING ) > > + { > > + model.setLatestBuildId( 0 ); > > + } > > Why is this only 0'd on the distributed build scenario? > > In a distributed build scenario, the latestBuild will point to a previous build result because the current build result will be created after the project finishes its build. > - Brett > > -- > Brett Porter > brett@apache.org > http://brettporter.wordpress.com/ > > > > > --001636ed68e6a33e0f047ca12a87--