Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D7669E2F for ; Mon, 12 Mar 2012 02:11:51 +0000 (UTC) Received: (qmail 58969 invoked by uid 500); 12 Mar 2012 01:11:50 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 58772 invoked by uid 500); 12 Mar 2012 01:11:49 -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 58752 invoked by uid 99); 12 Mar 2012 01:11:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 01:11:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of scott.neibarger@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gy0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 01:11:41 +0000 Received: by ghbz17 with SMTP id z17so2516909ghb.30 for ; Sun, 11 Mar 2012 18:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kOC9Pu6J71LvJFDRFqkRY4FnX5gYHKyYglSNJrVGUAM=; b=CqfpVeOIWg4pfe4TTPtqSY1J2nhnnOwQJoWP2IT6cgLwDS2gIw7YmNPEhRjvCcMYi9 nnPB4rsn4SIYox0iioeJWC9Oloz5gFerCz0+nGOhAZuVHHLraofO8VJRoTfwHzVc55LD W9j7MJ3TKYcSzFl5k1BQq+II1Flena3kBNKE/rw97WaeJk9tMtZyD+tjsE3cJkIHagJG 7UBHxTra7uFfgP0yoj/UwBSWqHUMlX28tu5vqB8OtAjEVLf3eH0UcojnlVpRvwJ/h5yt D14xTKTLkzID2T/I1IpzsXE0Wd9JsvJxTxWmkm9j2Amq4KLe3Rsd8r+In9J8RiEQOiKp oBqA== MIME-Version: 1.0 Received: by 10.224.27.84 with SMTP id h20mr6341081qac.48.1331514680715; Sun, 11 Mar 2012 18:11:20 -0700 (PDT) Received: by 10.229.28.79 with HTTP; Sun, 11 Mar 2012 18:11:20 -0700 (PDT) Date: Sun, 11 Mar 2012 20:11:20 -0500 Message-ID: Subject: [daemon] DaemonConfiguration question From: Scott Neibarger To: user@commons.apache.org Content-Type: multipart/alternative; boundary=bcaec51b138d8ea7d304bb016b3f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51b138d8ea7d304bb016b3f Content-Type: text/plain; charset=ISO-8859-1 Hi, Perhaps I'm confused about extending Daemon, and using DaemonConfiguration, but I hope not. I've created a DaemonConfiguration object and passed a file to the load() method. It successfully loads without throwing any exceptions, but when I try to get any properties from the file, getProperty returns null, and the getPropertyArray() method returns an empty array. I set up the properties file as such: home.dir=/path/to/home etc.dir=${home.dir}/etc bin.dir=${home.dir}/bin Should I be able to call getProperty("home.dir") and get /path/to/home ? --bcaec51b138d8ea7d304bb016b3f--