Bug 336868 - No mechanism to escape ${...} from variable substitution
Summary: No mechanism to escape ${...} from variable substitution
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-02-10 15:18 EST by Brian de Alwis CLA
Modified: 2023-11-16 20:46 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2011-02-10 15:18:02 EST
BuildId: 3.7M4

In debugging my program, I wanted to pass an argument to my program with a value that looks like a variable.  That is:

   -Dlog.location=${user.home}/logs

The debugger refused to launch with an error: "reference to underfined variable user.home".

Unfortunately I can't seem to find anything in the documentation to suggest a way to escape the $ to prevent the substring from being evaluated.  None of the obvious escapes worked:

   \${user.home}
   $${user.home} 
   '${user.home}'
   ${dollar}{user.home}

(I wanted to test some code to ensure that *it* did the variable substitution.)
Comment 1 Eclipse Genie CLA 2019-09-13 17:14:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Sarika Sinha CLA 2019-09-14 01:43:25 EDT
Bug is still valid.
Comment 3 Eclipse Genie CLA 2021-10-11 10:10:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Arend v. Reinersdorff CLA 2021-10-11 15:06:17 EDT
Bug is still valid.
Comment 5 Eclipse Genie CLA 2023-10-10 12:10:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Yurx Cherio CLA 2023-11-16 20:46:25 EST
I just encountered it. It is a very annoying bug.

I found a way to make it work:
-Dlog.location=$'{user.home}'/logs