Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » installation.location/eclipse on macOS
installation.location/eclipse on macOS [message #1823512] Fri, 27 March 2020 21:47 Go to next message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
Hi,
I'm trying to create a Product Setup model and make some changes to the installation, which requires knowing where Eclipse is installed. I have a variable declared as
${installation.location|uri}/eclipse
but apparently on Mac this isn't correct: it should be ${installation.location|uri}/Eclipse.app. Is there some variable to get the actual installation folder?
Thanks.
Re: installation.location/eclipse on macOS [message #1823522 is a reply to message #1823512] Sat, 28 March 2020 05:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
You can use a combination of variables:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="installation.full.path"
    value="${installation.location/}${installation.relativeProductFolder}"/>
And then you can use ${installation.full.path|uri} if you need the URI for that.

Another trick is to use "configuration:/" to express a reference to installation's configuration folder. E.g., I use this to copy the vi plugin's license to each installation:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCopyTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    sourceURL="file:/C:/Users/merks/viPlugin2.lic"
    targetURL="configuration:/../"/>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: installation.location/eclipse on macOS [message #1823533 is a reply to message #1823522] Sat, 28 March 2020 13:14 Go to previous messageGo to next message
Sina MadaniFriend
Messages: 160
Registered: November 2015
Location: York, UK
Senior Member
Great, thanks! For future reference, I was wondering if there's somewhere I can find a list of these variables and their properties? The "Eclipse Oomph Authoring" wiki page only has variables starting with "scope." which isn't complete.
Re: installation.location/eclipse on macOS [message #1823563 is a reply to message #1823533] Sun, 29 March 2020 03:50 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
The information you were looking for is actually in https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Declaring_and_Using_Variables:

Attribute values of setup tasks with a defined ID. The reference syntax is ${taskID.attributeName}.


What's really missing is a reference of all the setup tasks with all their attributes.


Previous Topic:Simple "Find and Replace" TextModification
Next Topic:Use eclipse.user.password in github project model.
Goto Forum:
  


Current Time: Wed Apr 24 21:37:18 GMT 2024

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

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

Back to the top