From 23f7267753c3a1b05e61e04b2e8c3f24c54d6975 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 11 Feb 2013 11:58:03 +0530 Subject: [PATCH] CLOUDSTACK-1181: Fix Environment so db.properties is in classpath We export CATALINA_HOME to utils/ which is the path which a lot of utils class would check and read db.properties file. This is exactly what is done in production. The utils classes (Transaction, Encryption*Checker etc.) would use PropertiesUtil which tries to find it in CATALINA_HOME. The only issue is, even if someone defined an override file, the encryption type would be still read from the db.properties file. For all other params, the override file would be re read and datastores would be reinitialized BUG-ID: CLOUDSTACK-1181 Signed-off-by: Rohit Yadav --- developer/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/developer/pom.xml b/developer/pom.xml index 27849ea2825..b0ae356625c 100644 --- a/developer/pom.xml +++ b/developer/pom.xml @@ -177,6 +177,12 @@ + + + CATALINA_HOME + ${project.parent.basedir}/utils/ + +