Home » Eclipse Projects » Oomph » Import custom .setup file into default eclipse-installer
Import custom .setup file into default eclipse-installer [message #1708513] |
Thu, 17 September 2015 09:14 |
Maksim Melnik Messages: 52 Registered: August 2015 |
Member |
|
|
Hello Oomph community,
so i have my custom .setup file. In order to install it , i have to drag and drop it into the eclipse-installer window.
However , what i want to achieve is that my setup file is there per default, so that i don't need to copy URL of it , or drag and drop kind of things. Is there any way of doing so? I also have uploaded my .setup file to the internet, maybe there is a way to write my url into a configuration file, so that my .setup thing gets displayed in the installer per default.
I explored the eclipse-installer installation folder, config.ini files and so on, but i didnt find a place where i could put my .setup file or a link.
|
|
|
Re: Import custom .setup file into default eclipse-installer [message #1708518 is a reply to message #1708513] |
Thu, 17 September 2015 09:23 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Maksim,
Comments below.
On 17/09/2015 11:14 AM, Maksim Melnik wrote:
> Hello Oomph community,
> so i have my custom .setup file. In order to install it , i have to
> drag and drop it into the eclipse-installer window.
Yes, once.
> However , what i want to achieve is that my setup file is there per
> default, so that i don't need to copy URL of it , or drag and drop
> kind of things. Is there any way of doing so?
It needs to be in one of the catalogs, so unless we add it to one of the
standard catalogs, you need to add it to your user extension or you'd
need to ship your own installer with your own catalogs.
> I also have uploaded my .setup file to the internet, maybe there is a
> way to write my url into a configuration file, so that my .setup thing
> gets displayed in the installer per default.
Yes, you can refer direct to internet hosted setups.
>
> I explored the eclipse-installer installation folder, config.ini files
> and so on, but i didnt find a place where i could put my .setup file
> or a link.
With -Doomph.redirection.* you can redirect the "standard" locations of
catalogs to different ones of your own. You could do that in the
eclipse-inst.ini.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Import custom .setup file into default eclipse-installer [message #1708573 is a reply to message #1708523] |
Thu, 17 September 2015 15:10 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Maksim,
We do this, for example, in our launcher
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->${file_uri:${resource_loc:/setups}}/
I.e., we redirect the entire setups folder from git to the URI location
of the setups project in the workspace, i.e., in our git clone.
So in general it's -Doomph.redirection.<whatever>=<sourceURI>-><targetURI>
If the URIs end in a / it's a "folder" mapping and redirects the entire
folder. Using this approach you can redirect the normal locations of
the catalogs or index to your own.
On 17/09/2015 11:51 AM, Maksim Melnik wrote:
> Hey Ed, thanks for your reply,
> Is shipping own installer a complicated process? I have never done
> that...
>
> How do I access the -Doomph.redirection.* in the eclipse-inst.ini?
>
> I've tried appending
> -Doomph.redirection.*
> http://fff-fild7.esy.es/
>
> but it didn't work.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | | | |
Re: Import custom .setup file into default eclipse-installer [message #1710092 is a reply to message #1709391] |
Sun, 04 October 2015 07:46 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Maksim,
Comments below.
On 28/09/2015 10:08 AM, Maksim Melnik wrote:
> Hey Ed,
> Thanks for your answer. I copied the index file and deleted all
> projectCatalogs/productCatalogs from the index, i have inserted
> Test1.setup and Test2.setup files.
>
> After that i have altered the index to:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:Index
> xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> name="index"
> label="Index">
> <projectCatalog
> href="Test1.setup#/"/>
> <projectCatalog
> href="Test2.setup#/"/>
> </setup:Index>
>
>
> Now, when i use eclipse-inst.ini to redirect to my folder, the
> installer tries to load Test2.setup from local cache, which i guess
> doesn't work... because it doesn't progress any further...
It will try to load it from the same folder where it loaded the file
that contains this XML.
> Any idea on what I did wrong or how i can resolve that?
You need to run such things under debug control so you get a sense of
how it works. You might put a breakpoint in
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Map<?, ?>) to see
what URIs are being loaded...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Thu Dec 26 17:48:08 GMT 2024
Powered by FUDForum. Page generated in 0.03885 seconds
|