velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kieran...@gmx.net
Subject Re: include with absolute path
Date Wed, 13 Jun 2012 08:18:01 GMT
Thanks.

-------- Original-Nachricht --------
> Datum: Tue, 12 Jun 2012 15:27:24 +0200
> Von: Claude Brisson <claude@renegat.net>
> An: "Velocity Users List" <user@velocity.apache.org>
> CC: kieransun@gmx.net
> 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
> kieransun@gmx.net 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: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
> 

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

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


Mime
View raw message