Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 718CF19831 for ; Fri, 4 Mar 2016 21:12:33 +0000 (UTC) Received: (qmail 69797 invoked by uid 500); 4 Mar 2016 21:12:33 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 69722 invoked by uid 500); 4 Mar 2016 21:12:33 -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 69713 invoked by uid 99); 4 Mar 2016 21:12:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 21:12:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D8B43C0A64 for ; Fri, 4 Mar 2016 21:12:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.671 X-Spam-Level: X-Spam-Status: No, score=0.671 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8xj5q4UrMmqW for ; Fri, 4 Mar 2016 21:12:32 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 60DDC5F56F for ; Fri, 4 Mar 2016 21:12:31 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 70293E076F for ; Fri, 4 Mar 2016 21:12:30 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 6716A3A027A for ; Fri, 4 Mar 2016 21:12:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1733652 - /commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml Date: Fri, 04 Mar 2016 21:12:30 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160304211230.6716A3A027A@svn01-us-west.apache.org> Author: oheger Date: Fri Mar 4 21:12:29 2016 New Revision: 1733652 URL: http://svn.apache.org/viewvc?rev=1733652&view=rev Log: [CONFIGURATION-620] Fixed invalid examples in user guide. Ported from trunk. Modified: commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml Modified: commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml?rev=1733652&r1=1733651&r2=1733652&view=diff ============================================================================== --- commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml (original) +++ commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml Fri Mar 4 21:12:29 2016 @@ -89,8 +89,8 @@ Parameters params = new Parameters(); // Read data from this file File propertiesFile = new File("config.properties"); -FileBasedConfigurationBuilder builder = - new FileBasedConfigurationBuilder(PropertiesConfiguration.class) +FileBasedConfigurationBuilder builder = + new FileBasedConfigurationBuilder(PropertiesConfiguration.class) .configure(params.fileBased() .setFile(propertiesFile)); try @@ -156,8 +156,8 @@ catch(ConfigurationException cex) setAutoSave() method as shown in the following example:

builder = - new FileBasedConfigurationBuilder(PropertiesConfiguration.class) +FileBasedConfigurationBuilder builder = + new FileBasedConfigurationBuilder(PropertiesConfiguration.class) .configure(params.fileBased() .setFile(new File("config.properties"))); // enable auto save mode