Skip to main content



      Home
Home » Newcomers » Newcomers » Relative path for Source location for CDT 4.x
Relative path for Source location for CDT 4.x [message #252539] Thu, 27 March 2008 01:54 Go to next message
Eclipse UserFriend
Originally posted by: youngseok.oh.samsung.com

Hello,

I wonder if I am able to specify a relative path for source location in
properties window under CDT 4.x environment.

(Properties > C/C++ General > Paths and Symbols > Source location > Create
/ link folder)

What I would like to do is to have common repositories in the server and
let all independent projects link the common repositories like below.

\src\CSP\includes
\sources
\src\project\A
\src\project\B
\src\project\C

For example, project A as well as project B need files in CSP folder. CSP
can be modified by project A or B or else at any time. Therefore, none of
CSP should be located in the project folder directly.

I have made use of create / link folder option to specify the link to CSP
folder and uploaded the project to ClearCase server. What I expected to
see is this create / link folder contains the relative path information
from project A to CSP (e.g. ..\CSP). However, it does have an absolute
path to CSP. Thus, when my colleague (having different absolute path) has
loaded the project A, the project could not find the CSP folder.

The create / link folder option is useful for me because I can filter some
files that I do not want to load, thus, I can determine which of files to
be included or excluded in different projects.

Perhaps, there are other options that I do not know in Eclipse to do same
things other than "create / link folder". However, I still think it would
be better for this function to have relative path information than
absolute path.

Youngseok
Re: Relative path for Source location for CDT 4.x [message #252575 is a reply to message #252539] Thu, 27 March 2008 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Youngseok Oh wrote:
> Hello,
>
> I wonder if I am able to specify a relative path for source location in
> properties window under CDT 4.x environment.
>
> (Properties > C/C++ General > Paths and Symbols > Source location >
> Create / link folder)
>
> What I would like to do is to have common repositories in the server and
> let all independent projects link the common repositories like below.
>
> \src\CSP\includes
> \sources
> \src\project\A
> \src\project\B
> \src\project\C
>
> For example, project A as well as project B need files in CSP folder.
> CSP can be modified by project A or B or else at any time. Therefore,
> none of CSP should be located in the project folder directly.
> I have made use of create / link folder option to specify the link to
> CSP folder and uploaded the project to ClearCase server. What I expected
> to see is this create / link folder contains the relative path
> information from project A to CSP (e.g. ..\CSP). However, it does have
> an absolute path to CSP. Thus, when my colleague (having different
> absolute path) has loaded the project A, the project could not find the
> CSP folder.
> The create / link folder option is useful for me because I can filter
> some files that I do not want to load, thus, I can determine which of
> files to be included or excluded in different projects.
> Perhaps, there are other options that I do not know in Eclipse to do
> same things other than "create / link folder". However, I still think it
> would be better for this function to have relative path information than
> absolute path.
>
> Youngseok
>

The solution is to use a path variable for the variable part of the
location.
When you create a linked folder, you can browse for defined variables or
define a new one.
Eg. if you define variable CSP as /src/CSP you can link to the folder
CSP/includes.

Note that path variables are defined per workspace, ie. they are not
shared with the project. So everyone checking out the project has to
define the path variable in his workspace.

--
Anton Leherbauer
Wind River CDT Team, Austria
Re: Relative path for Source location for CDT 4.x [message #252610 is a reply to message #252575] Thu, 27 March 2008 20:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: youngseok.oh.samsung.com

Thank you.
Yes, correct. I was able to manage this problem with variable.
As you said, it is dependent upon each individual's workspace.

Do you think I can do similar things in CDT 3.x?
Actually, I could not find any of options similiar like this in CDT 4.x.

MfG,


Youngseok
uC design team
Samsung Electronics
Re: Relative path for Source location for CDT 4.x [message #252616 is a reply to message #252610] Fri, 28 March 2008 06:03 Go to previous message
Eclipse UserFriend
Youngseok Oh wrote:
> Thank you.
> Yes, correct. I was able to manage this problem with variable. As you
> said, it is dependent upon each individual's workspace.
> Do you think I can do similar things in CDT 3.x? Actually, I could not
> find any of options similiar like this in CDT 4.x.

Linked resources are also available with CDT 3.x (it's an Eclipse
platform feature), but I am not sure whether CDT 3.x supports linked
folders in the same way as 4.x.

--
Anton Leherbauer
Wind River CDT Team, Austria
Previous Topic:Dubugging does not work
Next Topic:NoClassDefFoundError from plugin
Goto Forum:
  


Current Time: Sun May 04 16:12:03 EDT 2025

Powered by FUDForum. Page generated in 0.08581 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top