cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billsalvucci <>
Subject Re: use environment variable to set work-directory
Date Sat, 02 Dec 2006 02:00:34 GMT

Looks like I can use the javax.servlet.context.tempdir to do what I need. If
you don't specify the work-directory in the web.xml, cocoon uses the
javax.servlet.context.tempdir system property. So I can launch my
application server  with -D javax.servlet.context.tempdir=%TEMP%

billsalvucci wrote:
> I'd like to set the work-directory for cocoon using an environment
> variable. The only way that I know how to set the work-directory that
> cocoon uses is via an init-param in web.xml. I don't believe that you can
> reference an environment variable in web.xml.
> Basically, I'd like to achieve the equivalent of:
>             <init-param>
> 	      <param-name>work-directory</param-name>
> 	      <param-value>%TEMP%/cocoon/work</param-value>
> 	    </init-param>

View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message