Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/main/java/com/eclipsesource/v8/LibraryLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void loadLibrary(final String tempDirectory) {
return;

String path = null;

if (tempDirectory != null) {
path = tempDirectory;
} else {
Expand Down Expand Up @@ -157,7 +157,6 @@ static boolean extract(final String fileName, final String mappedName, final Str
}
os.close();
is.close();
chmod("755", fileName);
if (load(fileName, message)) {
return true;
}
Expand All @@ -182,13 +181,4 @@ static boolean extract(final String fileName, final String mappedName, final Str
return false;
}

static void chmod(final String permision, final String path) {
if (PlatformDetector.OS.isWindows()) {
return;
}
try {
Runtime.getRuntime().exec(new String[] { "chmod", permision, path }).waitFor(); //$NON-NLS-1$
} catch (Throwable e) {
}
}
}