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: 
http://www.nabble.com/use-environment-variable-to-set-work-directory-tf2741430.html#a7649345
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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

Reply via email to