From continuum-commits-return-401-apmail-maven-continuum-commits-archive=maven.apache.org@maven.apache.org Tue Jul 05 02:40:03 2005 Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 71828 invoked from network); 5 Jul 2005 02:40:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 02:40:03 -0000 Received: (qmail 66264 invoked by uid 500); 5 Jul 2005 02:40:03 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 66241 invoked by uid 500); 5 Jul 2005 02:40:03 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 66225 invoked by uid 99); 5 Jul 2005 02:40:03 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jul 2005 19:40:02 -0700 Received: (qmail 71787 invoked by uid 65534); 5 Jul 2005 02:40:00 -0000 Message-ID: <20050705024000.71786.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r209187 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Date: Tue, 05 Jul 2005 02:40:00 -0000 To: continuum-commits@maven.apache.org From: jvanzyl@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jvanzyl Date: Mon Jul 4 19:39:59 2005 New Revision: 209187 URL: http://svn.apache.org/viewcvs?rev=209187&view=rev Log: o doing tallies in the template while iterating through the projects Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=209187&r1=209186&r2=209187&view=diff ============================================================================== --- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java (original) +++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java Mon Jul 4 19:39:59 2005 @@ -73,63 +73,6 @@ return core.getProjects(); } - // TODO: i realize these are horribly inefficient and I will correct using JDO - // properly after the alpha-2 release. - - public Collection getProjectsWithFailures() - throws ContinuumException - { - List list = new ArrayList(); - - for ( Iterator i = core.getProjects().iterator(); i.hasNext(); ) - { - ContinuumProject p = (ContinuumProject) i.next(); - - if ( p.getState() == ContinuumProjectState.FAILED ) - { - list.add( p ); - } - } - - return list; - } - - public Collection getProjectsWithErrors() - throws ContinuumException - { - List list = new ArrayList(); - - for ( Iterator i = core.getProjects().iterator(); i.hasNext(); ) - { - ContinuumProject p = (ContinuumProject) i.next(); - - if ( p.getState() == ContinuumProjectState.ERROR ) - { - list.add( p ); - } - } - - return list; - } - - public Collection getProjectsWithSuccess() - throws ContinuumException - { - List list = new ArrayList(); - - for ( Iterator i = core.getProjects().iterator(); i.hasNext(); ) - { - ContinuumProject p = (ContinuumProject) i.next(); - - if ( p.getState() == ContinuumProjectState.OK ) - { - list.add( p ); - } - } - - return list; - } - public ContinuumBuild getLatestBuildForProject( String id ) throws ContinuumException {