问题
In Aptana Studio 2.0 (which is actually Eclipse 3.5) I have a Rails project X that includes a symbolic link to a folder Y outside the project folder. Folder Y is big. It contains a lot of files and folders. Building the project and refresing the workspace takes a lot of time. Therefore I do not like Eclipse to take the contents of folder Y into account when building project X and when determining resources with the Open Resource command.
I am looking for a way to exclude the symbolic link from the build path. I tried excluding it from the Ruby Load Path of the project, but Aptana still builds the files in the excluded folder.
So my questions are:
- Does excluding folders from the build path actually work in Aptana?
- Is this an Aptana issue or an Eclipse issue?
- Is there a way to make Eclipse/Aptana not follow symbolic links?
Thanks for any help.
回答1:
You might try using Aptana Studio 3 for this issue for two reasons:
1) There were some issues with the build process in RadRails 2.X where large directories of files are concerned. This has been corrected.
2) You can now exclude certain directories from the indexing process by choosing "Indexing > Exclude From Index"
This won't necessarily remove the files from the open resource command, but it should solve the long indexing/out of memory errors.
来源:https://stackoverflow.com/questions/1697843/how-to-make-aptana-eclipse-not-follow-symbolic-links