eclipse - How to pass a literal variable reference (${foo}) as program argument in a run configuration -
in eclipse, when specify arguments in run dialog, eclipse interprets ${foo}
request use eclipse variable foo. pass string application contains ${foo}
eclipse treats undefined variable , gives me error.
-dfoo "bar" --pattern "regex magic ${foo}"
eclipse not accept single quote (') quoting character, instead becomes part of input. know how can escape ${foo}
in dialog interpreted text , not variable reference?
you have define variable in eclipse: name = dollar, value = $
(this can done in "run configuration" dialog, when type arguments, click "variables...", , click "edit variables...", , add variable).
then, in arguments text-box, type ${dollar}"{foo}"
Comments
Post a Comment