Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 60852 invoked from network); 30 Nov 2006 16:30:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 16:30:09 -0000 Received: (qmail 39430 invoked by uid 500); 30 Nov 2006 16:30:12 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 39377 invoked by uid 500); 30 Nov 2006 16:30:12 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 39365 invoked by uid 99); 30 Nov 2006 16:30:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 08:30:12 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mdiggory@gmail.com designates 64.233.162.228 as permitted sender) Received: from [64.233.162.228] (HELO nz-out-0102.google.com) (64.233.162.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 08:30:01 -0800 Received: by nz-out-0102.google.com with SMTP id o1so1356573nzf for ; Thu, 30 Nov 2006 08:29:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=f8fNBMERTSkU8H/d1qpTh8/H/GSfFZEfUDOUKkdlT67EVFzG4n51ynrcq0GnJSKBzcAsm3HdkYUjMEXvb8xW3gav3XLXlvcIzOg6GKC+h/OW0huEdz1wNYlratG4ULsXmiZXxuSTeKNAZxu4cFN4IWVK2LZu4N+QfBv+6TInjY4= Received: by 10.78.183.15 with SMTP id g15mr3672934huf.1164904179632; Thu, 30 Nov 2006 08:29:39 -0800 (PST) Received: by 10.78.166.1 with HTTP; Thu, 30 Nov 2006 08:29:39 -0800 (PST) Message-ID: Date: Thu, 30 Nov 2006 11:29:39 -0500 From: "Mark Diggory" To: "Jakarta Commons Users List" Subject: [configuration] Variable Interpolation doesn't happen in subset() and configurationAt() MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_58208_12566346.1164904179285" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_58208_12566346.1164904179285 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to use variable interpolation in version 1.3 I'm unsure of the behavior with Sub-configurations. I'm wondering if interpolation should work in these as well (i.e. using the entire configuration to interpolate against. For instance if I have base.dir=/home/foo test.absolute.dir.x=${base.dir}/mypath test.absolute.dir.y=${base.dir}/mypath1 test.absolute.dir.z=${base.dir}/mypath2 If I call something like: Configuration config = configuration.configurationAt("test.absolute.dir"); for (Iterator iter = config.getKeys(); iter.hasNext();) { String key = (String) iter.next(); System.out.println(key + "=" + config.getString(key)); } this prints out x=${base.dir}/mypath y=${base.dir}/mypath1 z=${base.dir}/mypath2 I was naively expecting x=/home/foo/mypath y=/home/foo/mypath1 z=/home/foo/mypath2 Thoughts? Mark ------=_Part_58208_12566346.1164904179285--