Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 50382 invoked from network); 8 Oct 2008 07:34:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2008 07:34:36 -0000 Received: (qmail 32226 invoked by uid 500); 8 Oct 2008 07:34:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 32136 invoked by uid 500); 8 Oct 2008 07:34:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 32125 invoked by uid 99); 8 Oct 2008 07:34:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 00:34:34 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 07:33:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A9378234C211 for ; Wed, 8 Oct 2008 00:33:44 -0700 (PDT) Message-ID: <285552241.1223451224691.JavaMail.jira@brutus> Date: Wed, 8 Oct 2008 00:33:44 -0700 (PDT) From: "David Donn (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CONFIGURATION-338) PropertiesConfiguration should allow variable interpolation for includes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org PropertiesConfiguration should allow variable interpolation for includes ------------------------------------------------------------------------ Key: CONFIGURATION-338 URL: https://issues.apache.org/jira/browse/CONFIGURATION-338 Project: Commons Configuration Issue Type: Improvement Affects Versions: 1.5 Reporter: David Donn It would be nice if Include files were subject to the same variable interpolation as regular properties. e.g. it should be possible to do include=${sys:myfilename} I think it is simply a matter of changing the call in to loadIncludeFile() PropertiesConfiguration.propertyLoaded() from: loadIncludeFile(files[i].trim()); to: loadIncludeFile(interpolate(files[i].trim())); I am happy to submit a patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.