|
From: Leif M. <lei...@ta...> - 2013-06-13 17:00:19
|
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**** > > |