Révision 1696
| tmp/org.txm.core/src/java/org/txm/utils/BundleUtils.java (revision 1696) | ||
|---|---|---|
| 197 | 197 |
|
| 198 | 198 |
} |
| 199 | 199 |
|
| 200 |
/** |
|
| 201 |
* |
|
| 202 |
* @return install directory path |
|
| 203 |
*/ |
|
| 200 | 204 |
public static String getInstallDirectory() {
|
| 201 | 205 |
String path = System.getProperty("osgi.install.area");
|
| 202 | 206 |
if (path == null) {
|
| ... | ... | |
| 205 | 209 |
if (path == null) {
|
| 206 | 210 |
path = Toolbox.getPreference(TBXPreferences.INSTALL_DIR); |
| 207 | 211 |
} |
| 212 |
if (path.startsWith("file:")) {
|
|
| 213 |
path = path.substring(6); |
|
| 214 |
} |
|
| 208 | 215 |
return path; |
| 209 | 216 |
} |
| 210 | 217 |
|
Formats disponibles : Unified diff