commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [daemon] DaemonConfiguration question
Date Mon, 12 Mar 2012 03:55:59 GMT
On 12 March 2012 01:11, Scott Neibarger <scott.neibarger@gmail.com> wrote:
> 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,

The load() method catches Exceptions - did you check the return code?

>  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 ?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message