Do not do symlink hackery for java < 8
This commit is contained in:
parent
83b90d8bfb
commit
03a25c9a5d
@ -259,6 +259,16 @@ public class Utils
|
|||||||
{
|
{
|
||||||
zip.close();
|
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)
|
for (String entryName : toProcess)
|
||||||
{
|
{
|
||||||
// check if we need a symlink
|
// check if we need a symlink
|
||||||
|
Loading…
Reference in New Issue
Block a user