Fix for issue #3582 (Revert fails with "no valid existing backup locations")
To check that a revert directory is a really a reversion file directory, we're now based on the "installation" object
| | |
| | | Set<String> cs = new HashSet<String>(Arrays.asList(children)); |
| | | |
| | | // TODO: more testing of file dir |
| | | String installPath = System.getProperty("INSTALL_ROOT"); |
| | | String instancePath = System.getProperty("INSTANCE_ROOT"); |
| | | if (installPath.equals(instancePath)) |
| | | if (installation.instanceAndInstallInSameDir) |
| | | { |
| | | isFilesDir = cs.contains(CONFIG_PATH_RELATIVE) && |
| | | cs.contains(LIBRARIES_PATH_RELATIVE); |