Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 97319 invoked from network); 14 Apr 2009 20:57:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 20:57:09 -0000 Received: (qmail 56881 invoked by uid 500); 14 Apr 2009 20:57:08 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 56787 invoked by uid 500); 14 Apr 2009 20:57:08 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 56778 invoked by uid 99); 14 Apr 2009 20:57:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 20:57:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 20:57:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 64BD22388AFF; Tue, 14 Apr 2009 20:56:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r764949 - in /commons/proper/configuration/trunk: conf/testExpression.xml pom.xml src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java Date: Tue, 14 Apr 2009 20:56:47 -0000 To: commits@commons.apache.org From: rgoers@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090414205647.64BD22388AFF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rgoers Date: Tue Apr 14 20:56:46 2009 New Revision: 764949 URL: http://svn.apache.org/viewvc?rev=764949&view=rev Log: DefaultConfigurationBuilder was not registering the lookup with itself Modified: commons/proper/configuration/trunk/conf/testExpression.xml commons/proper/configuration/trunk/pom.xml commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java Modified: commons/proper/configuration/trunk/conf/testExpression.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/conf/testExpression.xml?rev=764949&r1=764948&r2=764949&view=diff ============================================================================== --- commons/proper/configuration/trunk/conf/testExpression.xml (original) +++ commons/proper/configuration/trunk/conf/testExpression.xml Tue Apr 14 20:56:46 2009 @@ -10,7 +10,8 @@ config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/> - + @@ -24,7 +25,7 @@ - Modified: commons/proper/configuration/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=764949&r1=764948&r2=764949&view=diff ============================================================================== --- commons/proper/configuration/trunk/pom.xml (original) +++ commons/proper/configuration/trunk/pom.xml Tue Apr 14 20:56:46 2009 @@ -155,12 +155,12 @@ Java Developer - + Ralph Goers rgoers rgoers@apache.org - Intuit + Intuit -8 Java Developer @@ -269,7 +269,15 @@ 1.5.6 test - + + + org.slf4j + slf4j-ext + 1.5.6 + test + + + org.slf4j slf4j-log4j12 @@ -315,7 +323,7 @@ xml-apis 1.0.b2 provided - + xml-resolver @@ -423,7 +431,7 @@ CONFIGURATION 12310467 - + src/java Modified: commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java?rev=764949&r1=764948&r2=764949&view=diff ============================================================================== --- commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java (original) +++ commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java Tue Apr 14 20:56:46 2009 @@ -706,6 +706,7 @@ StrLookup lookup = (StrLookup) BeanHelper.createBean(decl); BeanHelper.setProperty(lookup, "configuration", this); ConfigurationInterpolator.registerGlobalLookup(key, lookup); + this.getInterpolator().registerLookup(key, lookup); } } Modified: commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java?rev=764949&r1=764948&r2=764949&view=diff ============================================================================== --- commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java (original) +++ commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDefaultConfigurationBuilder.java Tue Apr 14 20:56:46 2009 @@ -971,6 +971,7 @@ factory.setFile(EXPRESSION_FILE); factory.setAttributeSplittingDisabled(true); System.getProperties().remove("Id"); + org.slf4j.MDC.clear(); CombinedConfiguration config = factory.getConfiguration(true); assertTrue("Incorrect configuration", config instanceof DynamicCombinedConfiguration); @@ -981,6 +982,7 @@ private void verify(String key, CombinedConfiguration config, int rows) { System.setProperty("Id", key); + org.slf4j.MDC.put("Id", key); int actual = config.getInt("rowsPerPage"); assertTrue("expected: " + rows + " actual: " + actual, actual == rows); }