Lines 5-13
Link Here
|
5 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
5 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
6 |
* (the "License"); you may not use this file except in compliance with |
6 |
* (the "License"); you may not use this file except in compliance with |
7 |
* the License. You may obtain a copy of the License at |
7 |
* the License. You may obtain a copy of the License at |
8 |
* |
8 |
* |
9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
10 |
* |
10 |
* |
11 |
* Unless required by applicable law or agreed to in writing, software |
11 |
* Unless required by applicable law or agreed to in writing, software |
12 |
* distributed under the License is distributed on an "AS IS" BASIS, |
12 |
* distributed under the License is distributed on an "AS IS" BASIS, |
13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Lines 58-64
Link Here
|
58 |
* Return specified property value. |
58 |
* Return specified property value. |
59 |
*/ |
59 |
*/ |
60 |
public static String getProperty(String name) { |
60 |
public static String getProperty(String name) { |
61 |
|
61 |
|
62 |
return properties.getProperty(name); |
62 |
return properties.getProperty(name); |
63 |
|
63 |
|
64 |
} |
64 |
} |
Lines 98-104
Link Here
|
98 |
try { |
98 |
try { |
99 |
File home = new File(getCatalinaBase()); |
99 |
File home = new File(getCatalinaBase()); |
100 |
File conf = new File(home, "conf"); |
100 |
File conf = new File(home, "conf"); |
101 |
File properties = new File(conf, "catalina.properties"); |
101 |
String configFilename = getConfigFilename(); |
|
|
102 |
File properties = new File(conf, configFilename); |
102 |
is = new FileInputStream(properties); |
103 |
is = new FileInputStream(properties); |
103 |
} catch (Throwable t) { |
104 |
} catch (Throwable t) { |
104 |
// Ignore |
105 |
// Ignore |
Lines 151-158
Link Here
|
151 |
return System.getProperty("catalina.home", |
152 |
return System.getProperty("catalina.home", |
152 |
System.getProperty("user.dir")); |
153 |
System.getProperty("user.dir")); |
153 |
} |
154 |
} |
154 |
|
155 |
|
155 |
|
156 |
|
156 |
/** |
157 |
/** |
157 |
* Get the value of the catalina.base environment variable. |
158 |
* Get the value of the catalina.base environment variable. |
158 |
*/ |
159 |
*/ |
Lines 168-172
Link Here
|
168 |
return System.getProperty("catalina.config"); |
169 |
return System.getProperty("catalina.config"); |
169 |
} |
170 |
} |
170 |
|
171 |
|
171 |
|
172 |
/** |
|
|
173 |
* Get the value of the configuration filename. |
174 |
*/ |
175 |
private static String getConfigFilename() { |
176 |
return System.getProperty("catalina.config.filename", "catalina.properties"); |
177 |
} |
172 |
} |
178 |
} |