How to create new folder in Eclipse Helios CDT with symbolic link?
I have just upgraded my Eclipse CDT from Galileo to Helios and it seems that I can't create a new folder in my C++ project that links to a symbolic link on the filesystem. I need this because our nightly build system keeps a history of builds and开发者_运维问答 updates a symbolic link to point to the latest source. It looks something like this:
/project/monday
/project/tuesday
/project/wednesday
/project/thursday
/project/friday
/project/lastnight -> /project/tuesday
With Galileo I could create the folder with the "Link to Folder in File System" that was "/project/lastnight". When I got to work in the morning I would just select the folder and hit refresh and the indexes would be updated. I could then use this reference this project from my other projects.
Is this possible with Helios? Or is there some other way I should be doing this?
Regards, Mike
EDIT: I am running eclipse on linux.
Resource view -> Create new folders -> Advanced -> Link to...
From the Eclipse Help..
- In one of the navigation views, right-click the project or folder where you want to create the linked folder.
- From the pop-up menu, select command link New > Folder.
- Specify the name of the folder as it will appear in the workbench. This name can be different from the name of the folder in the file system.
- Click Advanced.
- Check Link to alternate location (Linked Folder).
- Enter a file system path, or click Browse to select a folder in the file system.
- Click Finish.
you can find it in preferences: General->Workspace->Linked resources.
you can drag the folder into eclipse (at least in windows, not sure about linux) and the it will ask you whethear to link it or copy.
if not, Do it from the command line and then refresh the eclipse project.
cd ../project
ln -s tuesday lastnight
精彩评论