Just load it directly up using a PropertiesConfiguration object from the
Jakarta Commons Configuration project.

Eric

> -----Original Message-----
> From: Ilan Azbel [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 11, 2004 3:46 PM
> To: Turbine Users List
> Subject: Using TurbineResources.properties outside of a servlet
>
>
> Hello,
>
> I am trying to access the settings in the TurbineResources.properties file
> from an application that is not running as a servlet.
>
> I try to do the following:
>
> TurbineConfig config = new
> TurbineConfig("/usr/tdk-2.2/webapps/patterns/WEB-INF",
> "/conf/TurbineResources.properties");
> config.initialize();
> Enumeration e = config.getAttributeNames();
> while(e.hasMoreElements()) {
>       System.out.println(e.nextElement());
> }
>
>
> But I get no output. Any ideas about how to do this?
>
> Ilan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to