private String getInstallRoot(BootstrapProperties props) { String installRootProp = props.getInstallRoot(); if(installRootProp == null) { File installRoot = MainHelper.findInstallRoot(); if(isValidInstallRoot(installRoot)) { installRootProp = installRoot.getAbsolutePath(); } } return installRootProp; }
private String getInstallRoot(BootstrapProperties props) { String installRootProp = props.getInstallRoot(); if(installRootProp == null) { File installRoot = MainHelper.findInstallRoot(); if(isValidInstallRoot(installRoot)) { installRootProp = installRoot.getAbsolutePath(); } } return installRootProp; }