Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » eclipse-inst.ini redirection to a relative path
eclipse-inst.ini redirection to a relative path [message #1720578] Tue, 19 January 2016 13:29 Go to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Hello oomph community,
in order to import my custom setup files into the installer by default,
I wrote this line into eclipse-inst.ini :
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:/C:/Users/EMAKMEL/eclipse-installer/oomphcc/

Now my question is: is it possible to give a relative path instead of absolute one?

My goal is to ZIP and distribute the installer folder, the users should unpack that anywhere and when they start the installer, they would be automatically redirected to my .setup files
Re: eclipse-inst.ini redirection to a relative path [message #1720598 is a reply to message #1720578] Tue, 19 January 2016 16:21 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.01.2016 um 14:29 schrieb Maksim Melnik:
> Hello oomph community,
> in order to import my custom setup files into the installer by default, I wrote this line into eclipse-inst.ini :
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:/C:/Users/EMAKMEL/eclipse-installer/oomphcc/
>
>
> Now my question is: is it possible to give a relative path instead of absolute one?
That's possible. We also use relative paths for our tutorials.

Cheers
/Eike

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

>
> My goal is to ZIP and distribute the installer folder, the users should unpack that anywhere and when they start the
> installer, they would be automatically redirected to my .setup files


Re: eclipse-inst.ini redirection to a relative path [message #1720676 is a reply to message #1720598] Wed, 20 January 2016 09:33 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Thank you Eike for your reply,
what should the prefix be for the file if i want to use relative path?
I tried using batch-like notation %cd% like here:
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:%cd%/oomphcc/
Re: eclipse-inst.ini redirection to a relative path [message #1720687 is a reply to message #1720676] Wed, 20 January 2016 09:53 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 20.01.2016 um 10:33 schrieb Maksim Melnik:
> Thank you Eike for your reply,
> what should the prefix be for the file if i want to use relative path?
> I tried using batch-like notation %cd% like here:
>> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->file:%cd%/oomphcc/
>
The target paths must be relative to the installer executable, for example:

-Doomph.redirection.archive=http://www.eclipse.org/setups/setups.zip->../../setups/setups.zip
-Doomph.redirection.download=http://download.eclipse.org/oomph/products/repository->../../p2/oomph/products/repository

Cheers
/Eike

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


Re: eclipse-inst.ini redirection to a relative path [message #1720689 is a reply to message #1720687] Wed, 20 January 2016 10:03 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Thank you, that worked,
for those who is going to do that too, i want to mention that you need to put slash to the end,
so if you have a folder SETUPS in the installer folder, then it should look like:
-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->SETUPS/
Re: eclipse-inst.ini redirection to a relative path [message #1720695 is a reply to message #1720689] Wed, 20 January 2016 10:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Maksim,

Yes, the redirections are implemented by EMF:

http://download.eclipse.org/modeling/emf/emf/javadoc/2.11/org/eclipse/emf/ecore/resource/URIConverter.html#getURIMap%28%29

Note that if you redirect the setups in the installer, you'll need to
ensure that the installations produced by the installer will also have
appropriate redirections so that they can locate the products/projects
you've placed in your "distributed-with-the-installer" catalogs.



On 20/01/2016 11:03 AM, Maksim Melnik wrote:
> Thank you, that worked,
> for those who is going to do that too, i want to mention that you need
> to put slash to the end,
> so if you have a folder SETUPS in the installer folder, then it should
> look like:
> -Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->SETUPS/
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:what is the correct way to install Eclipse
Next Topic:Setting variables for the "Disabled"-property
Goto Forum:
  


Current Time: Fri Apr 26 23:01:15 GMT 2024

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

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

Back to the top