This commit is contained in:
huangyuhui
2016-02-26 23:59:36 +08:00
parent db2b0cb159
commit 9527783cdb
10 changed files with 16 additions and 9 deletions

View File

@@ -126,7 +126,7 @@ public class IOUtils {
public static boolean isAbsolutePath(String path) {
if (path == null)
return false;
return true;
return path.startsWith("/") || path.indexOf(":") > 0;
}

View File

@@ -44,6 +44,13 @@ public class Java {
JAVA = Collections.unmodifiableList(temp);
}
public static Java suggestedJava() {
for (Java j : JAVA)
if (j.name.startsWith("1.8") || j.name.startsWith("9"))
return j;
return JAVA.get(0);
}
String name, home;
public Java(String name, String home) {