diff options
author | Szymon Brandys | 2009-11-23 11:20:20 +0000 |
---|---|---|
committer | Szymon Brandys | 2009-11-23 11:20:20 +0000 |
commit | 6d3cb2f0843363fc794db0ad9f85fb4f6e9630af (patch) | |
tree | 9f8a2af123baeda49a8a73b5bbda44e1dbde7766 | |
parent | 7c63f02a96a2a31349f3842cc4e6d7fe48c1983d (diff) | |
download | eclipse.platform.resources-6d3cb2f0843363fc794db0ad9f85fb4f6e9630af.tar.gz eclipse.platform.resources-6d3cb2f0843363fc794db0ad9f85fb4f6e9630af.tar.xz eclipse.platform.resources-6d3cb2f0843363fc794db0ad9f85fb4f6e9630af.zip |
bug 290201 - Symbolic link support doesn't work on the Mac
-rw-r--r-- | bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java index 64f4468a5..a73773bfc 100644 --- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java +++ b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java @@ -93,14 +93,14 @@ public class LocalFileSystem extends FileSystem { //all known platforms with native implementation support the read only flag attributes |= EFS.ATTRIBUTE_READ_ONLY; - //this must be kept in sync with the actual native implementations. + // this must be kept in sync with functionality of previous libs not implementing nativeAttributes method String os = getOS(); String arch = System.getProperty("osgi.arch", ""); //$NON-NLS-1$ //$NON-NLS-2$ if (os.equals(Constants.OS_WIN32)) attributes |= EFS.ATTRIBUTE_ARCHIVE | EFS.ATTRIBUTE_HIDDEN; - else if (os.equals(Constants.OS_LINUX) || (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC)) || os.equals(Constants.OS_MACOSX)) + else if (os.equals(Constants.OS_LINUX) || (os.equals(Constants.OS_SOLARIS) && arch.equals(Constants.ARCH_SPARC))) attributes |= EFS.ATTRIBUTE_EXECUTABLE | EFS.ATTRIBUTE_SYMLINK | EFS.ATTRIBUTE_LINK_TARGET; - else if (os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX)) + else if (os.equals(Constants.OS_MACOSX) || os.equals(Constants.OS_HPUX) || os.equals(Constants.OS_QNX)) attributes |= EFS.ATTRIBUTE_EXECUTABLE; return attributes; } |