core
core copied to clipboard
Respect Velocity Folder config property
Description by @wezell :
There is another requirement - we need to respect theVELOCITY_FOLDER config property everywhere within the dotCMS system. Currently, our ActivatorUtil has this value hard coded. Here is a search of where we need to change this property to use what is configured in the config properties:

Passed QA
- Verified that velocity default folder location is created when velocity property is not defined in dotmarketing-config.properties. Uploaded successfully osgi plugin.
- Verified that velocity custom folder is created when velocity property is defined (VELOCITY_ROOT) in dotmarketing-config.properties. Uploaded successfully osgi plugin.
- Verified that velocity custom folder is created when defining an environment variable and velocity property (VELOCITY_ROOT) is defined in dotmarketing-config.properties (e.g.: VELOCITY_ROOT = {env:velocityPath). Uploaded successfully osgi plugin.
- Uploaded a few osgi plugins and worked fine.
Tested in dotcms 4.1.0 distribution Mac OS 10.10 / MySQL 5.6.35 / Firefox v45.0.1 / Tomcat 8 / Java 8
Documented: https://auth.dotcms.com/docs/latest/distributed-velocity-files