|
Lines 9-14
Link Here
|
| 9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
| 10 |
* Martin Oberhuber (Wind River) - [170317] add symbolic link support to API |
10 |
* Martin Oberhuber (Wind River) - [170317] add symbolic link support to API |
| 11 |
* Martin Oberhuber (Wind River) - [183137] liblocalfile for solaris-sparc |
11 |
* Martin Oberhuber (Wind River) - [183137] liblocalfile for solaris-sparc |
|
|
12 |
* Martin Oberhuber (Wind River) - [184433] liblocalfile for Linux x86_64 |
| 12 |
*******************************************************************************/ |
13 |
*******************************************************************************/ |
| 13 |
package org.eclipse.core.internal.filesystem.local; |
14 |
package org.eclipse.core.internal.filesystem.local; |
| 14 |
|
15 |
|
|
Lines 90-97
Link Here
|
| 90 |
String arch = System.getProperty("osgi.arch", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
91 |
String arch = System.getProperty("osgi.arch", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
| 91 |
if (os.equals(Constants.OS_WIN32)) |
92 |
if (os.equals(Constants.OS_WIN32)) |
| 92 |
attributes |= EFS.ATTRIBUTE_ARCHIVE | EFS.ATTRIBUTE_HIDDEN; |
93 |
attributes |= EFS.ATTRIBUTE_ARCHIVE | EFS.ATTRIBUTE_HIDDEN; |
| 93 |
else if ( (os.equals(Constants.OS_LINUX) && (arch.equals(Constants.ARCH_X86) || arch.equals(Constants.ARCH_PPC))) |
94 |
else if ( |
| 94 |
|| (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC)) |
95 |
(os.equals(Constants.OS_LINUX) && (arch.equals(Constants.ARCH_X86) || arch.equals(Constants.ARCH_X86_64) || arch.equals(Constants.ARCH_PPC))) |
|
|
96 |
|| (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC)) |
| 95 |
) |
97 |
) |
| 96 |
attributes |= EFS.ATTRIBUTE_EXECUTABLE | EFS.ATTRIBUTE_SYMLINK | EFS.ATTRIBUTE_LINK_TARGET; |
98 |
attributes |= EFS.ATTRIBUTE_EXECUTABLE | EFS.ATTRIBUTE_SYMLINK | EFS.ATTRIBUTE_LINK_TARGET; |
| 97 |
else if (os.equals(Constants.OS_MACOSX) || os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX)) |
99 |
else if (os.equals(Constants.OS_MACOSX) || os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX)) |