i have made a Properties File where i will be storing some information that is required for configuring The Velocity engine. The properties file also stores the path where all the Velocity Templates are stored. If i keep the Velocity Templates in a Folder inside the Workspace itself, it finds it and gives me the required output But if i give a path outside the Workspace, it is not able to find the resource.
My Workspace is VelocityPOC
i want to store all Velocity Templates outside the workspace in a folder VelTemplates
Can any1 Please tell me how i must specify the path in the properties file to access the Velocity Template stored in the folder VelTemplates
You'd need to provide a complete, absolute path, or figure out what directory Eclipse is using as the current directory when running the program.
For what it's worth, unless you have a specific need to allow users to override your templates, I'd get the templates as a classpath resource. (Even if you *do* need to allow users to supply their own templates, I'd do so in a different way, like a property or command line argument.)