Checkpoint for OPENDJ-1343 Migrate dsconfig
- Removed System.getProperty("user.dir") from the initialization of the configuration framework and replaced it with the System.getenv(["INSTALL_ROOT"]["INSTANCE_ROOT"]).
| | |
| | | if (loader != null) { |
| | | throw new IllegalStateException("configuration framework already initialized."); |
| | | } |
| | | this.installPath = installPath == null ? System.getProperty("user.dir") : installPath; |
| | | this.instancePath = instancePath == null ? this.installPath : instancePath; |
| | | this.installPath = installPath == null ? System.getenv("INSTALL_ROOT") : installPath; |
| | | if (instancePath != null) { |
| | | this.instancePath = instancePath; |
| | | } else { |
| | | this.instancePath = System.getenv("INSTANCE_ROOT") != null ? System.getenv("INSTANCE_ROOT") |
| | | : this.installPath; |
| | | } |
| | | this.parent = parent; |
| | | initialize0(); |
| | | return this; |