|Re: Link external source folder via environment variable [message #771571 is a reply to message #771437]
||Tue, 27 December 2011 16:54
| David Wegener
Registered: July 2009
On 12/27/2011 02:51 AM, Mikhail wrote:|
> I'm trying to link external source folder to my project. I'm doing this
> via Project properties->C/C++ general->Paths and Symbols->Source
> Location->Link Folder. In principle it is working fine, if I specify the
> absolute folder path.
> The problem is that the absolute path is not applicable in my case, as
> we share the project via SVN, and other developers have that folder with
> absolute paths. We are using an environment variable to reference this
> issue. But this variable is not available in the "Variables.." popup for
> the linked resources. Only variables I see there are ECLIPSE_HOME,
> PARENT_LOC, PROJECT_LOC and WORKSPACE_LOC.
> This puzzles me a lot. How can I link the folder using an environment
> variable? I can see the variables in the Project properties->C/C++
> build->Build Variables (with "Show system variables" enabled), but not
> in Project properties->Resource->Linked Resources->Path Variables.
> Are there any solutions to this problem?
> Best regards,
> Mikhail Barg
Eclipse won't pick up Path Variables from Environment variables. You
can define your own Path Variables in the popup for linked resources.
Click on the New button and browse to the file system location. Each
developer then needs to define this variable in their own workspace.
You are able to get relative paths using special variable names that are
internal to Eclipse. You can setup the relative links using Drag and
Drop. Open up a system file navigator window (Explorer, Dolphin,
Nautilus, etc). Drag the external folder and drop it on the project in
the Eclipse Project Explorer. A dialog box will ask if you want to add
the folder to the project. Select Link to Files and Folders. You can
then select if the link should be relative to the project, workspace, or
a variable you create yourself.
Powered by FUDForum
. Page generated in 0.06900 seconds