Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C1FCF200B54 for ; Thu, 28 Jul 2016 20:12:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C072D160A94; Thu, 28 Jul 2016 18:12:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 13914160A56 for ; Thu, 28 Jul 2016 20:12:50 +0200 (CEST) Received: (qmail 5839 invoked by uid 500); 28 Jul 2016 18:12:50 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 5827 invoked by uid 99); 28 Jul 2016 18:12:49 -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; Thu, 28 Jul 2016 18:12:49 +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 37116C0373 for ; Thu, 28 Jul 2016 18:12:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.648 X-Spam-Level: ** X-Spam-Status: No, score=2.648 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (768-bit key) header.d=m410.us 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 5WT64dNJvzQz for ; Thu, 28 Jul 2016 18:12:47 +0000 (UTC) Received: from qproxy1-pub.mail.unifiedlayer.com (qproxy1-pub.mail.unifiedlayer.com [173.254.64.10]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 3939560D3D for ; Thu, 28 Jul 2016 18:12:46 +0000 (UTC) Received: (qmail 2799 invoked by uid 0); 28 Jul 2016 18:12:37 -0000 Received: from unknown (HELO cmgw2) (10.0.90.83) by qproxy1.mail.unifiedlayer.com with SMTP; 28 Jul 2016 18:12:37 -0000 Received: from host162.hostmonster.com ([74.220.207.162]) by cmgw2 with id QJ7X1t0193WlyiJ01J7av2; Thu, 28 Jul 2016 12:07:36 -0600 X-Authority-Analysis: v=2.1 cv=KaJB72oD c=1 sm=1 tr=0 a=D6vTfiEeQGa7hFe1OiUMeA==:117 a=D6vTfiEeQGa7hFe1OiUMeA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=ZZnuYtJkoWoA:10 a=a0i-MmqUGg8A:10 a=l-v7XViMEoUA:10 a=cAmyUtKerLwA:10 a=dKQQMV91e9gA:10 a=NEAV23lmAAAA:8 a=mV9VRH-2AAAA:8 a=XtFzSeOkc23k9F_m75UA:9 a=QEXdDO2ut3YA:10 a=EnaFRAinEZMA:10 a=0nxqkdznReF5hy7ZjZIA:9 a=8umtv2PB7jCvDgXA:21 a=_W_S_7VecoQA:10 a=Bn2pgwyD2vrAyMmN8A2t:22 a=BYZmueQyWBbq8FANvIHb:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=m410.us; s=default; h=In-Reply-To:To:References:Date:Subject:Mime-Version:Message-Id: Content-Type:From; bh=xvMccq6/4wPEUGPDZVkHE0mwsU+RVCwBJfqZA3oU0xg=; b=qsztczF RVl18PfL2s0R6zj5toNwMx+/XDRhYbIvX6ITRAsi3sLtPLd9rcWLYEj0Kgec8kmymPE0kPcz7iKGx juDChKiaODSVpCtSw+5L/AzYHh2wgFI5MqZKR38s2Vkf; Received: from [76.97.244.20] (port=52409 helo=[192.168.0.7]) by host162.hostmonster.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.86_2) (envelope-from ) id 1bSpiX-0006iR-G7 for user@commons.apache.org; Thu, 28 Jul 2016 12:07:33 -0600 From: Michael Fortin Content-Type: multipart/alternative; boundary="Apple-Mail=_ADD820BE-53A5-429F-BAD3-676BF0BCDD8D" Message-Id: <558AC7F7-2156-4FD2-BA35-561920870766@m410.us> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [configuration] YAML configuration Date: Thu, 28 Jul 2016 14:07:27 -0400 References: <7F955B52-4090-4E5C-A7A5-6CFEAD07CA1A@m410.us> <57888EB2.2080906@apache.org> To: Commons Users List In-Reply-To: <57888EB2.2080906@apache.org> X-Mailer: Apple Mail (2.3124) X-Identified-User: {910:host162.hostmonster.com:ckmfouti:m410.us} {sentby:smtp auth 76.97.244.20 authed with michael@m410.us} X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host162.hostmonster.com X-AntiAbuse: Original Domain - commons.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - m410.us X-Source-IP: 76.97.244.20 X-Exim-ID: 1bSpiX-0006iR-G7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.0.7]) [76.97.244.20]:52409 X-Source-Auth: michael@m410.us X-Email-Count: 0 X-Source-Cap: Y2ttZm91dGk7Y2ttZm91dGk7aG9zdDE2Mi5ob3N0bW9uc3Rlci5jb20= archived-at: Thu, 28 Jul 2016 18:12:51 -0000 --Apple-Mail=_ADD820BE-53A5-429F-BAD3-676BF0BCDD8D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I nearly have the library working with a few small caveats. I=E2=80=99= m not sure if this is a bug, I setup something wrong, or the expected = behavior. =20 This is the unit test, line 60 fails: = https://github.com/m410/commons-configuration-yaml/blob/master/src/test/ja= va/org/m410/config/YamlConfigurationTest.java = but the collection is there, the preceding 4 lines pass without issue. = Any advice would be much appreciated. thx. > On Jul 15, 2016, at 3:20 AM, Dennis Kieselhorst = wrote: >=20 > Hi Michael, >=20 > your toNodeMap method has a bug. In line 54 you're adding the child = node > but you're not using the node that is returned. >=20 > Regards > Dennis >=20 > Am 13.07.2016 um 20:43 schrieb Michael Fortin: >> Hi, I was trying to setup commons configuration to use YAML as it=E2=80= =99s configuration file format. =20 >>=20 >> I found this example using commons 1.*: >> = https://github.com/PEXPlugins/PermissionsEx/blob/5da1c1410f134e2c8e39fbc93= dc1c7d5e3456335/src/main/java/ru/tehkode/utils/config/YamlFileConfiguratio= n.java = >>=20 >> And I was also looking at source of the XMLConfiguration as a guide: >> = https://commons.apache.org/proper/commons-configuration/apidocs/org/apache= /commons/configuration2/XMLConfiguration.html = >>=20 >> This is what I have so far: >> = https://github.com/m410/commons-configuration-yaml/blob/master/src/main/ja= va/org/m410/config/YamlConfiguration.java = >>=20 >> The test runs but doesn=E2=80=99t pass. Could someone give me some = guidance as to what I=E2=80=99m doing wrong? =20 >>=20 >> thanks much, >> Michael >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org >=20 --Apple-Mail=_ADD820BE-53A5-429F-BAD3-676BF0BCDD8D--