Skip to content

Commit a0341d1

Browse files
committed
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 <[email protected]> (cherry picked from commit 23f7267) Signed-off-by: Rohit Yadav <[email protected]>
1 parent 0923bf8 commit a0341d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

developer/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@
177177
<!-- Do dry run using -d or dash-dash-dry -->
178178
<!-- Enable verbosity by -v or dash-dash-verbose -->
179179
</arguments>
180+
<systemProperties>
181+
<systemProperty>
182+
<key>CATALINA_HOME</key>
183+
<value>${project.parent.basedir}/utils/</value>
184+
</systemProperty>
185+
</systemProperties>
180186
</configuration>
181187
</plugin>
182188
</plugins>

0 commit comments

Comments
 (0)