| | |
| | | // should use xcalcs but it does not come in the windows default install... |
| | | // :-( |
| | | // This method is not called for the moment, but the code works, so that is |
| | | // why |
| | | // is kept. |
| | | // why is kept. |
| | | private static int changePermissionsWindows(String path, String unixPerm) |
| | | throws IOException, InterruptedException |
| | | { |
| | |
| | | * @param installPath The installation path |
| | | * @return the path of the installation of the directory server. |
| | | */ |
| | | public static String getInstancePathFromClasspath(String installPath) |
| | | public static String getInstancePathFromInstallPath(String installPath) |
| | | { |
| | | String instancePathFileName = Installation.INSTANCE_LOCATION_PATH; |
| | | File configureScriptPath = new File(installPath + File.separator + |
| | |
| | | { |
| | | builder.append(formatter.getSpace()); |
| | | builder.append(formatter.getFormattedProgress(Message.raw( |
| | | escapeValue(s)))); |
| | | escapeCommandLineValue(s)))); |
| | | } |
| | | } |
| | | return builder.toString(); |
| | |
| | | * @param value the String to be treated. |
| | | * @return the transformed value. |
| | | */ |
| | | private static String escapeValue(String value) |
| | | public static String escapeCommandLineValue(String value) |
| | | { |
| | | StringBuilder b = new StringBuilder(); |
| | | if (Utils.isUnix()) |