You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Will Glass-Husain <wg...@gmail.com> on 2007/03/14 19:43:07 UTC

configuring upload temp directory

Hi,

I'd like to configure my upload temp directory to point at
${catalina.home}/temp, so that I can bundle my app as a war and deploy
on different platforms with different directory structures.

When I put this into TurbineResources.properties, I get a literal
directory  "${catalina.home}" created.
services.UploadService.repository=${catalina.home}/temp

Any suggestions how to make the directory automatically set to the
Tomcat temp directory?

I'm using Turbine 2.3.2, JDK 5, Tomcat 5.5.

best,
WILL

-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

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


Re: configuring upload temp directory

Posted by Thomas Vandahl <tv...@apache.org>.
Will Glass-Husain wrote:
> Hi,
> 
> I'd like to configure my upload temp directory to point at
> ${catalina.home}/temp, so that I can bundle my app as a war and deploy
> on different platforms with different directory structures.
I'd suggest to use ${catalina.base} instead because this might point to
the real deployment area.

> When I put this into TurbineResources.properties, I get a literal
> directory  "${catalina.home}" created.
> services.UploadService.repository=${catalina.home}/temp
> 
> Any suggestions how to make the directory automatically set to the
> Tomcat temp directory?

I use a TurbineConfiguration.xml for this as suggested in the docs. I
have the JNDI configuration before the real TR.properties. This way, I
can overwrite any Turbine setting from the context-file of the webapp. Like:

<Environment name="services/UploadService/repository"
  type="java.lang.String"
  value="${catalina.base}/temp"/>


Hope this helps.

Bye, Thomas.

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