mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-1181: Find by catalina.home property first
The previous commit fails if a person had defined CATALINA_HOME already. Instead of system env variable, get any passed variable 'catalina.home' and find the file in that path. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
23f7267753
commit
44287d20c0
@ -179,8 +179,8 @@
|
||||
</arguments>
|
||||
<systemProperties>
|
||||
<systemProperty>
|
||||
<key>CATALINA_HOME</key>
|
||||
<value>${project.parent.basedir}/utils/</value>
|
||||
<key>catalina.home</key>
|
||||
<value>${project.parent.basedir}/utils</value>
|
||||
</systemProperty>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
@ -287,6 +287,12 @@
|
||||
<argument>--rootpassword=${db.root.password}</argument>
|
||||
<!-- 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>
|
||||
|
||||
@ -70,14 +70,14 @@ public class PropertiesUtil {
|
||||
if (file.exists()) {
|
||||
return file;
|
||||
}
|
||||
|
||||
newPath = System.getenv("CATALINA_HOME");
|
||||
|
||||
newPath = System.getProperty("catalina.home");
|
||||
if (newPath == null) {
|
||||
newPath = System.getenv("CATALINA_BASE");
|
||||
newPath = System.getenv("CATALINA_HOME");
|
||||
}
|
||||
|
||||
if (newPath == null) {
|
||||
newPath = System.getProperty("catalina.home");
|
||||
newPath = System.getenv("CATALINA_BASE");
|
||||
}
|
||||
|
||||
if (newPath == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user