Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 34950 invoked from network); 11 Feb 2007 14:51:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2007 14:51:56 -0000 Received: (qmail 29086 invoked by uid 500); 11 Feb 2007 14:52:04 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 29076 invoked by uid 500); 11 Feb 2007 14:52:03 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 29062 invoked by uid 99); 11 Feb 2007 14:52:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Feb 2007 06:52:03 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Feb 2007 06:51:55 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id C75BB1A981A; Sun, 11 Feb 2007 06:51:35 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r506014 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild: config/projects/Geronimo_CTS/Controller.groovy system/util/IterationConfigurator.groovy Date: Sun, 11 Feb 2007 14:51:35 -0000 To: scm@geronimo.apache.org From: jdillon@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070211145135.C75BB1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jdillon Date: Sun Feb 11 06:51:34 2007 New Revision: 506014 URL: http://svn.apache.org/viewvc?view=rev&rev=506014 Log: Refactory iter cfgr for better resuse... still ugly whack code though :-( Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/IterationConfigurator.groovy Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy?view=diff&rev=506014&r1=506013&r2=506014 ============================================================================== --- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy (original) +++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/Controller.groovy Sun Feb 11 06:51:34 2007 @@ -252,11 +252,11 @@ def runtestsIteration = { params.tests = '%' - def cfg = new IterationConfigurator(context) + def cfg = new IterationConfigurator() cfg.configFile = 'project/tck-testsuite/iterations.xml' cfg.iteration = params.iteration cfg.applyTo = [ 'tests' ] - cfg.apply() + cfg.apply(params) runtests() } Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/IterationConfigurator.groovy URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/IterationConfigurator.groovy?view=diff&rev=506014&r1=506013&r2=506014 ============================================================================== --- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/IterationConfigurator.groovy (original) +++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/IterationConfigurator.groovy Sun Feb 11 06:51:34 2007 @@ -45,12 +45,6 @@ String replacementToken = '%' - def IterationConfigurator(BuildContext context) { - assert context - - params = context.params - } - def setConfigFile(filename) { assert filename @@ -113,7 +107,7 @@ return list.join(' ') } - def apply() { + def apply(params) { def config = loadConfig() assert iteration <= config.iteration.size() : "Iteration index is out of range"