Do not do symlink hackery for java < 8

This commit is contained in:
Petr Mrázek 2014-11-16 04:03:08 +01:00
parent 83b90d8bfb
commit 03a25c9a5d

View File

@ -259,6 +259,16 @@ public class Utils
{
zip.close();
}
// For java <= 7, do not do symlink hackery below.
String[] javaVersionElements = System.getProperty("java.version").split("\\.");
int major = Integer.parseInt(javaVersionElements[1]);
if (major <= 7)
{
return;
}
// for >= 8, do hackery
for (String entryName : toProcess)
{
// check if we need a symlink