Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 52486 invoked from network); 22 Aug 2006 15:19:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 15:19:26 -0000 Received: (qmail 81709 invoked by uid 500); 22 Aug 2006 15:19:22 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 81638 invoked by uid 500); 22 Aug 2006 15:19:22 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 81626 invoked by uid 99); 22 Aug 2006 15:19:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 08:19:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 08:19:21 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85538410010 for ; Tue, 22 Aug 2006 15:16:16 +0000 (GMT) Message-ID: <1515702.1156259776542.JavaMail.jira@brutus> Date: Tue, 22 Aug 2006 08:16:16 -0700 (PDT) From: "Joerg Schaible (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Reopened: (CONFIGURATION-216) Inconsistent way to locate filename when creating configuration In-Reply-To: <14987103.1150436489875.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/CONFIGURATION-216?page=all ] Joerg Schaible reopened CONFIGURATION-216: ------------------------------------------ Reopened by request. Since the bug is "only" resolved, you should have been able to do so yourself. But maybe there's a flaw in the JIRA workflow configuration ... > Inconsistent way to locate filename when creating configuration > --------------------------------------------------------------- > > Key: CONFIGURATION-216 > URL: http://issues.apache.org/jira/browse/CONFIGURATION-216 > Project: Commons Configuration > Issue Type: Bug > Environment: commons-configuration-1.3-dev > Reporter: Gabriele Garuglieri > Assigned To: Oliver Heger > Priority: Minor > Attachments: 216.patch > > > There is a different behaviour locating the configuration file in classpath depending on the way it is set in the configuration class. > For example assuming "conf/conf1.properties" exists in classpath: > PropertiesConfiguration pc = new PropertiesConfiguration("conf/conf1.properties"); > gives org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source conf1.properties > while > PropertiesConfiguration pc = new PropertiesConfiguration(); > pc.setFileName("conf/conf1.properties"); > pc.load(); > properly locate file in classpath and loads it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org