Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 3476 invoked from network); 28 Jul 2005 06:55:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 06:55:01 -0000 Received: (qmail 10218 invoked by uid 500); 28 Jul 2005 06:54:52 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 10174 invoked by uid 500); 28 Jul 2005 06:54:52 -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 10161 invoked by uid 99); 28 Jul 2005 06:54:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 23:54:52 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.206.65] (HELO web33001.mail.mud.yahoo.com) (68.142.206.65) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 27 Jul 2005 23:54:44 -0700 Received: (qmail 17901 invoked by uid 60001); 28 Jul 2005 06:54:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.sg; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FoNim2ntiksmYsnx89t6cCeUWALPZwuUadxarJRr87jcKkSpmerbefGryJb6CTEqHAm1J4ECJN+7uBfVvoNbWsEo53BDHdjMg+KUMQrEiNnYbBEU4nEJvilaGJkweGoyE6xkAqmczLlu0dGDrv0yw3aTAcxYuVRdHpdps5Z1CDU= ; Message-ID: <20050728065449.17899.qmail@web33001.mail.mud.yahoo.com> Received: from [203.116.59.12] by web33001.mail.mud.yahoo.com via HTTP; Wed, 27 Jul 2005 23:54:49 PDT Date: Wed, 27 Jul 2005 23:54:49 -0700 (PDT) From: Tan Kah Siong Subject: Configuration: Value not overriding To: commons-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi. I need to clarify the following about commons configuration. Commons configuration can make use of a substitution technique as follows. file: application1.properties key1 = ${key2} key2 = key2value key3 = key3value This will result in key1=key2value Now, say i got another file file: application2.properties key2 = keyXvalue This file is loaded into a compositeconfiguration as follows, CompositeConfiguration config = new CompositeConfiguration(); config.addConfiguration(new PropertiesConfiguration("application1.properties")); config.addConfiguration(new PropertiesConfiguration("application2.properties")); Will key2 now be key2value or keyXvalue or an array of both? Consequently, will key1 be key2value or keyXvalue after application2.properties is loaded? Please advice. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org