Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 66385 invoked from network); 24 Jun 2009 20:41:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 20:41:21 -0000 Received: (qmail 1942 invoked by uid 500); 24 Jun 2009 20:41:31 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 1830 invoked by uid 500); 24 Jun 2009 20:41:31 -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 1820 invoked by uid 99); 24 Jun 2009 20:41:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 20:41:31 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 20:41:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E5C2234C004 for ; Wed, 24 Jun 2009 13:41:07 -0700 (PDT) Message-ID: <1976649328.1245876067375.JavaMail.jira@brutus> Date: Wed, 24 Jun 2009 13:41:07 -0700 (PDT) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-353) Allow Commons Configuration to set system properties In-Reply-To: <1065651357.1229637824349.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723726#action_12723726 ] Emmanuel Bourg commented on CONFIGURATION-353: ---------------------------------------------- That change is weird. Why does it work only with PropertiesConfiguration? I would have preferred adding a single method taking any configuration, and let the DefaultConfigurationBuilder deal with the source configuration. That looks cleaner to me. Initializing the system properties would look like this: SystemConfiguration.setSystemProperties(new PropertiesConfiguration("system.properties")); Alternatively, this could have been solved without modifying SystemConfiguration by using a simple copy: ConfigurationUtils.copy(new PropertiesConfiguration("system.properties"), new SystemConfiguration()); > Allow Commons Configuration to set system properties > ---------------------------------------------------- > > Key: CONFIGURATION-353 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-353 > Project: Commons Configuration > Issue Type: New Feature > Affects Versions: 1.6 > Environment: All > Reporter: Ralph Goers > Fix For: 1.6 > > > SystemConfiguration allows the system properties to be accessed as a configuration and used in a combined configuration. However, no mechanism is available to set system properties from an external file. Such a facility would alleviate having to place a bunch of -D options on the command line. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.