Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357456

Summary: Eclipse does not display and recognize unix symbolic links in projects
Product: [Eclipse Project] Platform Reporter: Ali <anebi>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: enhancement    
Priority: P3 CC: remy.suen, Szymon.Brandys
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

Description Ali CLA 2011-09-13 05:04:37 EDT
Build Identifier: M20100211-1343

I have created inside the project several symbolic links using terminal:

ln -s workspace/testproject/testfolder/file1 workspace/testproject/testfolder2/file1

ln -s workspace/testproject/testfolder/file2 workspace/testproject/testfolder2/file2

I do refresh of testfolder2 in eclipse project tree, but I don't see the links.

Eclipse does not recognize and display those links.

I know I can create new links inside the project using New File -> Advanced -> Link to filesystem file..., but I would like eclipse to take care also for unix symlinks.

Reproducible: Always
Comment 1 Szymon Brandys CLA 2011-09-13 08:47:36 EDT
Eclipse supports Unix symlinks. However to list files from the underlying filesystem we just use java.io.File. I need to check if java handles this case properly when I have access to Linux tomorrow.
Comment 2 Ali CLA 2011-09-13 09:55:30 EDT
Hello,

I did some more tests and I found that actually it is not eclipse problem. 

As I explained on the issue I created symlinks this way:

ln -s workspace/testproject/testfolder/file1
workspace/testproject/testfolder2/file1

ln -s workspace/testproject/testfolder/file2
workspace/testproject/testfolder2/file2

But creating synlinks this way creates that links.

cd workspace/testproject/testfolder2
ls -la
file1 -> workspace/testproject/testfolder/file1
file2 -> workspace/testproject/testfolder/file2

These links points to non existent files and links are dead. Because of links are dead eclipse does not show them in file structure.

I just created links properly and eclipse listed them. So this is definitely not a problem with eclipse.

I close the issue as it is invalid and not eclipse related at all.

Regards,
Ali