Eclipse toolchain installer now preserves executable bit on Linux

Change-Id: I55fec21cf8a972c7e6f216fed0d4cf1287959ca6
This commit is contained in:
Paul Malmsten
2014-02-23 13:00:47 -05:00
parent 2606362509
commit 5f727e57a8

View File

@@ -105,7 +105,8 @@ public abstract class AbstractInstaller {
}
installLocation.mkdirs();
if (System.getProperty("os.name").startsWith("Mac OS X")) { // MACs are special...
final String osName = System.getProperty("os.name");
if (osName.startsWith("Mac OS X") || osName.startsWith("Linux")) { // Unix-like OSes must preserve the executable bit; call unzip
InputStream zip = getInstallResourceStream();
File tmpFile = File.createTempFile(getFeatureName()+"-", ".zip");
FileOutputStream fout = new FileOutputStream(tmpFile);