0

I'm trying to assign a variable for file.resource.loader.path in velocity.properties file as :

file.resource.loader.path=${file.path}

Here file.path already exists in config.properties so the path defined for both is the same.
I thought to refer a variable here, but I'm not able to load a path to this. I am loading my property file through applicationcontext.xml this way:

Can any one help me out?

Nani
  • 363
  • 1
  • 4
  • 8
  • can you share the code/context xml to show how you are loading the properties – Dhanush Gopinath Aug 05 '13 at 07:42
  • am using java.util.properties class to load the properties.. – Nani Aug 05 '13 at 08:29
  • If you are using spring, load both the property files `elocity.properties` and `config.properties` via standard `PropertyPlaceHolderConfigurere`. This type of scenario works well with that. – Santosh Aug 05 '13 at 11:19
  • Possible duplicate of [propertyPlaceHolderConfigurer and environement variable](http://stackoverflow.com/questions/8911602/propertyplaceholderconfigurer-and-environement-variable) – Paul Sweatte May 16 '17 at 19:22

0 Answers0