Fix the broken build (no JDK has no src.zip in CI)

This commit is contained in:
BoykoAlex
2018-11-07 21:01:10 -05:00
parent d3faadef7b
commit 5e34506eae
2 changed files with 15 additions and 12 deletions

View File

@@ -11,7 +11,6 @@
package org.springframework.ide.vscode.commons.java;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -68,16 +67,8 @@ public class BootProjectUtil {
private static Path sourceZip(Path containerFolder) {
Path sourcesZip = containerFolder.resolve("src.zip");
if (Files.isReadable(sourcesZip)) {
if (Files.exists(sourcesZip)) {
return sourcesZip;
} else if (Files.isSymbolicLink(sourcesZip)) {
try {
Path realPath = sourcesZip.toRealPath();
System.out.println("Symlink points to -> " + realPath);
return realPath;
} catch (IOException e) {
log.error("", e);
}
}
return null;
}