Fix for issue 1460 (Remove build name from default install directory).
Do not use the COMPACT_VERSION_STRING from DynamicConstants but only the long and short version of the product to build the default install directory.
| | |
| | | String userDir = System.getProperty("user.home"); |
| | | String firstLocation = |
| | | userDir + File.separator |
| | | + org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING; |
| | | + org.opends.server.util.DynamicConstants.SHORT_NAME + "-" |
| | | + org.opends.server.util.DynamicConstants.MAJOR_VERSION + "." |
| | | + org.opends.server.util.DynamicConstants.MINOR_VERSION; |
| | | String serverLocation = firstLocation; |
| | | int i = 1; |
| | | while (fileExists(serverLocation) |