Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Annoying string substitution validated when used as vm argument i run configuration
Annoying string substitution validated when used as vm argument i run configuration [message #1731668] Mon, 09 May 2016 03:03 Go to next message
Eclipse UserFriend
Hi,

We have used Luna for a long time but wanted to check if we could use Mars edition.
Everything looked fine until we found out that we have to add all string substitution variables.

Example:

In our run configuration of our test suite we have the following vm argument:

-Ddata=${var1}

Then I press "Run" button.

Launching confiuration .... encountered a problem.

Reference to undefined variable 'var1'

What is the purpose of this validation? Is it not possible to turnoff this validation?
Our users of Eclipse thinks it is very confusing and we get a lot of questions about this. Any workarounds?

All input appreciated.

br,

//mikael


http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Flaunchers%2Fenvironment.htm
Re: Annoying string substitution validated when used as vm argument i run configuration [message #1731683 is a reply to message #1731668] Mon, 09 May 2016 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Mikael,

It sounds like this question:

http://stackoverflow.com/questions/4801753/how-to-pass-a-literal-variable-reference-foo-as-program-argument-in-a-run-c



On 09.05.2016 09:03, Mikael Petterson wrote:
> Hi,
>
> We have used Luna for a long time but wanted to check if we could use Mars edition.
> Everything looked fine until we found out that we have to add all string substitution variables.
>
> Example:
>
> In our run configuration of our test suite we have the following vm argument:
>
> -Ddata=${var1}
>
> Then I press "Run" button.
>
> Launching confiuration .... encountered a problem.
>
> Reference to undefined variable 'var1'
>
> What is the purpose of this validation? Is it not possible to turnoff this validation?
> Our users of Eclipse thinks it is very confusing and we get a lot of questions about this. Any workarounds?
>
> All input appreciated.
>
> br,
>
> //mikael
>
>
> http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Flaunchers%2Fenvironment.htm
Re: Annoying string substitution validated when used as vm argument i run configuration [message #1731703 is a reply to message #1731683] Mon, 09 May 2016 07:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Yes it seems to be the issue so I we use:

-Ddata=$"{var1}"

It will not try to validate.

Do you know what is the purpose of this and which version of Eclipse it was introduced in?

br,

//mikael
Re: Annoying string substitution validated when used as vm argument i run configuration [message #1731707 is a reply to message #1731703] Mon, 09 May 2016 08:29 Go to previous message
Eclipse UserFriend
Mikael,

I thought string substitutions have always been there. The point is
that you can use Window -> Preferences -> Run/Debug -> String
Substitutions to define what to substitute so that the run
configurations can be parameterized to suit different user
configurations, e.g, locations of things that might be different on each
machine.


On 09.05.2016 13:43, Mikael Petterson wrote:
> Hi,
>
> Yes it seems to be the issue so I we use:
>
> -Ddata=$"{var1}"
>
> It will not try to validate.
>
> Do you know what is the purpose of this and which version of Eclipse
> it was introduced in?
>
> br,
>
> //mikael
Previous Topic:Get IDocument from IFile
Next Topic:Platform.getBundle(symbolicName) return null
Goto Forum:
  


Current Time: Mon Mar 17 21:38:59 EDT 2025

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

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

Back to the top