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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]