Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » installer variables(What are the variables used by the installer)
installer variables [message #1723951] Fri, 19 February 2016 09:06 Go to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

Hello everybody,

I try to create a setup file to set up a special folder structure (not the usual structure provided by the installer).

To do so I would need to know what variables the installer uses to install an eclipse.

Where can I find such a list

Thank you Smile


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: installer variables [message #1723957 is a reply to message #1723951] Fri, 19 February 2016 09:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.02.2016 um 10:06 schrieb Steffen Holzer:
> Hello everybody,
> I try to create a setup file to set up a special folder structure (not the usual structure provided by the installer).
>
> To do so I would need to know what variables the installer uses to install an eclipse.
> Where can I find such a list
Here: https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Declaring_and_Using_Variables

The most interesting one will be ${installation.xyz}, which is induced by the attributes of the InstallationTask. Please
look for examples by opening the Catalog Index in the Setup Editor, pressing Ctrl+F, and searching for "${installation.".

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: installer variables [message #1724814 is a reply to message #1723957] Fri, 26 February 2016 09:51 Go to previous messageGo to next message
Steffen Holzer is currently offline Steffen HolzerFriend
Messages: 59
Registered: January 2016
Member

Thank you. For the sake of post completness here are the variables I found:

${installation.
root -> folder in which the eclipse installtion.location is placed
location -> folder in which eclipse is installed
relativeProductFolder -> ?
id -> an Identifier I suppose
}


"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
Re: installer variables [message #1724870 is a reply to message #1724814] Fri, 26 February 2016 16:43 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 26.02.2016 um 10:51 schrieb Steffen Holzer:
> Thank you. For the sake of post completness here are the variables I found:
>
> ${installation.
> root -> folder in which the eclipse installtion.location is placed
> location -> folder in which eclipse is installed
> relativeProductFolder -> ?
That's the path from the installation.location to the folder that contains, e.g., the eclipse.ini file, which may be
different on the different OSs. Here's an example that sets the default perspective of a product:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
<setup:ResourceCreationTask
id="plugin.customization.ini"
excludedTriggers="STARTUP MANUAL"
content="org.eclipse.ui/defaultPerspectiveId=org.eclipse.papyrus.infra.core.perspective&#xD;&#xA;"
targetURL="${installation.location|uri}/${installation.relativeProductFolder}/plugin_customization.ini"/>
<setup:EclipseIniTask
excludedTriggers="STARTUP MANUAL"
option="-pluginCustomization"
value="${plugin.customization.ini.targetURL|file}"/>
</xmi:XMI>


> id -> an Identifier I suppose
The value of ${installation.id} is "installation" by definition, pretty useless ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:How to enforce ordering of Oomph steps?
Next Topic:Oomph filter explanation
Goto Forum:
  


Current Time: Thu Apr 25 11:23:26 GMT 2024

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

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

Back to the top