| Problem with builder settings using workspace_loc on Linux [message #795755] |
Fri, 10 February 2012 17:27  |
Eclipse User |
|
|
|
Our build scripts need to have a couple crucial environment variables configured, which we set in C/C++ Build->Environment.
As one example, we set PYTHONPATH to ${workspace_loc:/SimCommon/src/Python}
This works wonderfully on Windows, but on linux the colon is detected as the path separator and the variable adds two separate entries to PYTHONPATH:
* ${workspace_loc
* /SimCommon/srcPython}
I tried escaping, but to no avail. I can't simply use ${WorkspaceDirPath} since it assumes that all projects are physically located in the workspace directory which is often not the case.
[Updated on: Fri, 10 February 2012 17:28] by Moderator
|
|
|
|
|
|
|
|
|
|
| Re: Problem with builder settings using workspace_loc on Linux [message #801093 is a reply to message #798988] |
Fri, 17 February 2012 17:48   |
Eclipse User |
|
|
|
Axel Mueller wrote on Wed, 15 February 2012 05:03I am using ${workspace_loc:/tools}
"tools" is a project in my workspace. The variable is set in Project Properties-> C/C++ Build->Environment
So, I created a project called "tools" and allowed it to be stored directly in my workspace directory. Then, under C/C++ Build->Environment, I added two variables:
zomg = ${workspace_loc:/tools}
blah = ${workspace_loc}/tools
As part of my build, I printed what the environment variabes are set to. Here are the results:
$zomg=${workspace_loc:/tools}
$blah=/disk01/data/davidsj2/workspace/tools
As you can see, "zomg" wasn't set correctly. I'm wondering if you either are setting the variable as part of your standard environment or if whatever you're invoking doesn't require the variable.
In my previous post, I said it appeared as if Eclipse was splitting the variables using ${workspace_loc:/<proj>} syntax before performing varible lookup. That was incorrect. Since the variable I was setting is multi-valued, the script in my build that uses the variable splits it based on the system path separator. Well, since Eclipse isn't doing any variable substitution when using this syntax, my script got the variable as-is and proceeded to split.
[Updated on: Fri, 17 February 2012 17:52] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05166 seconds