|
From: Leif M. <lei...@ta...> - 2013-06-20 07:13:59
|
David, I am sorry for the delay. I had a discussion with our team about this request. For architectural reasons, it will be difficult to implement this in 3.5.x, but will be fairly strait forward to add for our 3.6.0 release. I have added this to the list to get in for that release. Cheers, Leif On Fri, Jun 14, 2013 at 4:28 PM, Davide Silvestre <ds...@cd...> wrote: > Hi Leif,**** > > Thank you for your reply.**** > > I know I can get the properties using the WrapperManager, but I can do > that only for the current configuration.**** > > What I need is to be able to load the properties for all the wrapper > applications running on a machine.**** > > So given a conf file I need to parse it and extract all the properties > taking into account the possibility of having included conf files.**** > > ** ** > > Thanks,**** > > David**** > > ** ** > > *From:* Leif Mortenson [mailto:lei...@ta...] > *Sent:* 13. juni 2013 18:32 > *To:* wra...@li... > *Subject:* Re: [Wrapper-user] Load configuration properties**** > > ** ** > > David, > The Wrapper's configuration file is not exactly the same as a Java > Properties file. The Wrapper also supports things like cascading etc > amongst other things. > > If you only need the current configuration file, you can get this by > calling WrapperManager.getProperties(). > > Please let me know if you need something else as it may be useful for a > future release. > > Cheers, > Leif > > **** > > On Wed, Jun 12, 2013 at 6:34 PM, Davide Silvestre <ds...@cd...> wrote:* > *** > > Hi,**** > > I would like to extract programmatically all the properties from a > configuration file.**** > > The WrapperProperties class extends Java Properties, but if I load the > properties using the following code:**** > > **** > > Properties prop = new Properties();**** > > prop.load(new FileInputStream(confFilePath));**** > > **** > > **** > > Then it doesn't take into account the include statements, the '\' are not > escaped ...**** > > Given a configuration file, what is the easiest way to load all the > properties, including the ones in the included conf files?**** > > **** > > Thanks,**** > > David**** > > ** ** > > |