Re: include with absolute path

[email protected]
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
Thanks.

-------- Original-Nachricht --------
> Datum: Tue, 12 Jun 2012 15:27:24 +0200
> Von: Claude Brisson <[email protected]>
> An: "Velocity Users List" <[email protected]>
> CC: [email protected]
> Betreff: Re: include with absolute path

> TEMPLATE_ROOT is precisely here to enforce a minimum of security when
> using the FileResourceLoader, and is not meant to allow to reach files
> located elsewhere.
> 
> If you have access to the Velocity configuration, you can add a second
> resource loader with a TEMPLATE_ROOT that points to C:\Users\me.
> 
>   Claude
> 
> On Tue, 12 Jun 2012 15:16:10 +0200
> [email protected] wrote:
> 
> > Hello,
> > 
> > how can I include files, that aren't located under TEMPLATE_ROOT?
> > These did not work:
> > #include("file:C:\\Users\\me\\include\\place\\my.properties") 
> > #include("C:\\Users\\me\\include\\place\\my.properties")
> > #include("C:/Users/me/include/place/my.properties")	
> > 
> > Kind regards,
> > Kieran
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.