ECLIPSE_HOME should point to target platform [message #1727233] |
Mon, 21 March 2016 09:48  |
Eclipse User |
|
|
|
The java classpath variable ECLIPSE_HOME is defined to point to the target platform.
Due to bug 482197 the TargletContainer was changed to return the install location instead of the pool location.
Was it intended, that this change have that effect?
Best regards
Tobias
|
|
|
|
Re: ECLIPSE_HOME should point to target platform [message #1727309 is a reply to message #1727270] |
Tue, 22 March 2016 01:41   |
Eclipse User |
|
|
|
Eike Stepper wrote on Mon, 21 March 2016 16:10
> The java classpath variable ECLIPSE_HOME is defined to point to the target platform.
I always thought it always points to the host IDE's install location, but now I've checked the defining code in
org.eclipse.pde.internal.core.EclipseHomeInitializer and org.eclipse.pde.core.plugin.TargetPlatform.getLocation(). I
must say that I find the name "ECLIPSE_HOME" highly misleading. Maybe it's relict from pre-OSGi times.
When I first used that variable, I was surprised, too.
Eike Stepper wrote on Mon, 21 March 2016 16:10
But worse than the name is the implementation: If the first ITargetLocation has a non-null location, that location is
used for ECLIPSE_HOME. If there are no ITargetLocations or the first one has a null location, the host IDE's install
location is used. More than the first ITargetLocation is never checked for non-null locations.
With this complex definition the ECLIPSE_HOME variable does not seem very useful to me. How are you using it?
I need a special annotation processor from the target platform. So I used this variable in the annotation processing factory path to point to the plugin in the target platform.
Eike Stepper wrote on Mon, 21 March 2016 16:10
>
> Due to bug 482197 the TargletContainer was changed to return the install location instead of the pool location.
>
> Was it intended, that this change have that effect?
I guess so. Do you think that is a problem?
Is there another way to get the path of a plugin out of the target platform?
Best regards
Tobias
|
|
|
|
|
|
|
|
|
Re: ECLIPSE_HOME should point to target platform [message #1754145 is a reply to message #1754103] |
Tue, 14 February 2017 12:30  |
Eclipse User |
|
|
|
When modifying a launch configuration, any place the dialog shows Variables... the "Select Variable" dialog will have various targlet_* variables you can use. The message isn't very descriptive about what the argument should be though. Which specific thing(s) are you interested in using?
|
|
|
Powered by
FUDForum. Page generated in 0.03699 seconds