| [news.eclipse.tools.cdt] Re: Build variable for directory of "selected resource"? |
Toralf Lund wrote:
Axel Mueller wrote:
Toralf Lund wrote:
In CDT 6.0, is there a build variable containing the directory component of the current file, i.e. the "selected resource" in Eclipse terminology? (I'm not able to spot one when browsing the list.) Alternatively, can I manipulate the corresponding file name variable (which does exist - it's $selected_resource_loc) so that the directory name only is returned?Does $selected_resource_name exist?
Yes. It returns the inverse of what I want, in a sense, i.e. it gives me $selected_resource_loc with the directory component returned.
The last word there should be "removed", obviously...