Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » String variable expansion
String variable expansion [message #487144] Tue, 22 September 2009 07:06 Go to next message
Eclipse UserFriend
Originally posted by: drwowe.yahoo.com

How can I escape the dollar sign and curly braces in a string so Eclipse
doesn't try to variable-expand it? I need to pass "${SomeVariable}"
literally down into my Makefile but Eclipse keeps subtituting a blank
string (because SomeVariable isn't defined in Eclipse, it's defined by
the makefile itself)
I've tried the "usual" conventions with backslashes, double-dollar signs,
etc and it's not working yet.

Also is this kind of stuff documented anywhere?
Re: String variable expansion [message #487256 is a reply to message #487144] Tue, 22 September 2009 15:15 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/22/09 3:06 AM, DW wrote:
> How can I escape the dollar sign and curly braces in a string so Eclipse
> doesn't try to variable-expand it? I need to pass "${SomeVariable}"
> literally down into my Makefile but Eclipse keeps subtituting a blank
> string (because SomeVariable isn't defined in Eclipse, it's defined by
> the makefile itself)
> I've tried the "usual" conventions with backslashes, double-dollar signs,
> etc and it's not working yet.
>
> Also is this kind of stuff documented anywhere?

This sounds like it is related to C/C++ development; if so, you might
want to ask on the CDT newsgroup (eclipse.tools.cdt).

Eric
Re: String variable expansion [message #487316 is a reply to message #487256] Tue, 22 September 2009 18:23 Go to previous message
Eclipse UserFriend
Originally posted by: drwowe.yahoo.com

On Tue, 22 Sep 2009 11:15:15 -0400, Eric Rizzo wrote:

>> How can I escape the dollar sign and curly braces in a string so
>> Eclipse doesn't try to variable-expand it? I need to pass
>> "${SomeVariable}" literally down into my Makefile but Eclipse keeps
>> subtituting a blank string (because SomeVariable isn't defined in
>> Eclipse, it's defined by the makefile itself)
>> I've tried the "usual" conventions with backslashes, double-dollar
>> signs, etc and it's not working yet.
>>
>> Also is this kind of stuff documented anywhere?
>
> This sounds like it is related to C/C++ development; if so, you might
> want to ask on the CDT newsgroup (eclipse.tools.cdt).
>

OK, I can post there if that's the most appropriate place, but I thought
string variables are handled by the main Eclipse platform? The question
isn't really about Makefiles and C programming per se, it's about how
Eclipse does string variable expansion and what the quoting rules are.
Previous Topic:ignored plugins
Next Topic:Post Eclipse 3.4.2 migration, project folders now labeled 'JS'
Goto Forum:
  


Current Time: Tue Mar 19 02:14:43 GMT 2024

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

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

Back to the top