private static String classpathToString(List<File> cp) { StringBuilder builder = new StringBuilder(); for (File file : cp) { if (builder.length() > 0) { builder.append(File.pathSeparator); } builder.append(FileUtil.toCanonicalPath(file.getPath())); } return builder.toString(); }
@Override public String suggestSdkName(String currentSdkName, String sdkHome) { StringBuilder builder = new StringBuilder(); builder.append(GO_SDK_NAME); if (getSdkData() != null) { builder.append(" ").append(getSdkData().VERSION_MAJOR); } if (sdkHome.matches(".*bundled/go-sdk/?$")) { builder.append(" (bundled)"); } return builder.toString(); }