Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Maksim Melnik is currently offline Maksim MelnikFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 #1708523 is a reply to message #1708518] Thu, 17 September 2015 09:51 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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.

How do i redirect the standard locations to my catalog?
Are there any requirments for my web-resource , in order it appears as catalog ?

[Updated on: Thu, 17 September 2015 14:18]

Report message to a moderator

Re: Import custom .setup file into default eclipse-installer [message #1708573 is a reply to message #1708523] Thu, 17 September 2015 15:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 #1708579 is a reply to message #1708573] Thu, 17 September 2015 16:10 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Thank you Ed for your reply,
This solution is exactly what i want to do.

Now when i append these lines :
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->http://fff-fild7.esy.es/
or
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:/C:/Users/EMAKMEL/Desktop/oomphclipse/oomph-master/ws/oomphproj/
or
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:///C:/Users/EMAKMEL/Desktop/oomphclipse/oomph-master/ws/oomphproj/
to eclipse-inst.ini then i get an error that i do not have network access to the files.
Am I doing something wrong ?
Cheers,
Maksim Melnik
  • Attachment: Capture.PNG
    (Size: 10.10KB, Downloaded 162 times)
Re: Import custom .setup file into default eclipse-installer [message #1708581 is a reply to message #1708579] Thu, 17 September 2015 16:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Maksim,

All the expected files (the ones you see in Oomph's setup projects),
need to be at that location.

On 17/09/2015 6:10 PM, Maksim Melnik wrote:
> Thank you Ed for your reply,
> This solution is exactly what i want to do.
>
> Now when i append these lines :
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->http://fff-fild7.esy.es/
> or
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:/C:/Users/EMAKMEL/Desktop/oomphclipse/oomph-master/ws/oomphproj/
> or
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:///C:/Users/EMAKMEL/Desktop/oomphclipse/oomph-master/ws/oomphproj/
> to eclipse-inst.ini then i get an error that i do not have network access to the files.
> Am I doing something wrong ?
> Cheers,
> Maksim Melnik


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Import custom .setup file into default eclipse-installer [message #1708582 is a reply to message #1708581] Thu, 17 September 2015 16:28 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Ed,

So i need to copy the git .setup files into the folder too, is it correct ?
If so, where do i get the git .setup files?

All my own custom .setup files are in these folders.

[Updated on: Thu, 17 September 2015 16:29]

Report message to a moderator

Re: Import custom .setup file into default eclipse-installer [message #1708606 is a reply to message #1708582] Fri, 18 September 2015 06:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Maksim,

The index must be there, and everything you reference from the index.
You might redirect only the index to your own copy, add your own
project catalog (that references your own project setup) to that copy,
and reuse all the other things as is.

On 17/09/2015 6:28 PM, Maksim Melnik wrote:
> Ed,
>
> So i need to copy the git setup files into the folder too, is it
> correct ?
> All my own custom .setup files are in these folders.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Import custom .setup file into default eclipse-installer [message #1708826 is a reply to message #1708606] Mon, 21 September 2015 14:34 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Hey Ed,

>> The index must be there, and everything you reference from the index.
I don't quite get what you mean by index Sad Do i need the copy of the git .setup files in
the folder with my projects?

>>You might redirect only the index to your own copy, add your own
>>project catalog (that references your own project setup) to that copy,
>>and reuse all the other things as is.

How do I redirect only the index to a copy in the eclipse-inst.ini?
What do you mean by copy?

Maybe a screenshot would help D:

Maksim

UPDATE:
when i download the whole git link and put it to my project folder, and then redirect as said above, the oomph eclipse starts without errors but i don't see my projects

[Updated on: Mon, 21 September 2015 15:49]

Report message to a moderator

Re: Import custom .setup file into default eclipse-installer [message #1708947 is a reply to message #1708826] Tue, 22 September 2015 17:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Maksim,

The index is normally loaded from
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
but you can have your own index anywhere and redirect to that. You
might start by copying the existing index to somewhere else and
redirecting to that.

On 21/09/2015 4:34 PM, Maksim Melnik wrote:
> Hey Ed,
>
>>> The index must be there, and everything you reference from the index.
> I don't quite get what you mean by index :( Do i need the copy the git
> .setup files in
> the folder with my projects?
>>> You might redirect only the index to your own copy, add your own
>>> project catalog (that references your own project setup) to that
>>> copy, and reuse all the other things as is.
>
> How do I redirect only the index to a copy? What do you mean by copy?
>
> Maybe a screenshot would help D:
>
> Maksim


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Import custom .setup file into default eclipse-installer [message #1709391 is a reply to message #1708947] Mon, 28 September 2015 08:08 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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...
Any idea on what I did wrong or how i can resolve that?
Re: Import custom .setup file into default eclipse-installer [message #1710092 is a reply to message #1709391] Sun, 04 October 2015 07:46 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Multiple workspace with same product
Next Topic:Negating/Evaluating boolean variable
Goto Forum:
  


Current Time: Thu Dec 26 17:23:40 GMT 2024

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

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

Back to the top