You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Ambika Prasad Das <ap...@iitk.ac.in> on 2003/12/15 10:39:02 UTC

Using Turbine outside turbine framework

Hi friends,

I am doing a database related project and for that I need to use turbine
APIs. I want to use turbine API outside the turbine framework. For this
I wrote my own TurbineResources.properties file and gave the full path
name for it. TurbineConfig tc=new
TurbineConfig(".","/home/user/TurbineResources.properties). But it
cannot find the file and gives Exception for file not found.
Can anybody help me ?

Regards,

A.P.Das.


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


Re: Using Turbine outside turbine framework

Posted by Terry McBride <te...@boxitllc.com>.
According to the javadoc the second parameter is relative to the first.  Try
putting TurbineResources.properties under your application's directory and
use something like:
    new TurbineConfig ("/my/application/",
"/conf/TurbineResources.properties");  // maybe without the leading slash
before conf.

--from api docs--
Parameters:
path - The web application root (i.e. the path for file lookup).
properties - the relative path to TurbineResources.properties file


----- Original Message ----- 
From: "Ambika Prasad Das" <ap...@iitk.ac.in>
To: "Turbine Mailing list" <tu...@jakarta.apache.org>
Sent: Monday, December 15, 2003 4:39 AM
Subject: Using Turbine outside turbine framework


> Hi friends,
>
> I am doing a database related project and for that I need to use turbine
> APIs. I want to use turbine API outside the turbine framework. For this
> I wrote my own TurbineResources.properties file and gave the full path
> name for it. TurbineConfig tc=new
> TurbineConfig(".","/home/user/TurbineResources.properties). But it
> cannot find the file and gives Exception for file not found.
> Can anybody help me ?
>
> Regards,
>
> A.P.Das.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


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