mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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 <bhaisaab@apache.org>
This commit is contained in:
parent
c67b9c9650
commit
23f7267753
@ -177,6 +177,12 @@
|
||||
<!-- Do dry run using -d or dash-dash-dry -->
|
||||
<!-- Enable verbosity by -v or dash-dash-verbose -->
|
||||
</arguments>
|
||||
<systemProperties>
|
||||
<systemProperty>
|
||||
<key>CATALINA_HOME</key>
|
||||
<value>${project.parent.basedir}/utils/</value>
|
||||
</systemProperty>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user