Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to force the installer to unpack itself
How to force the installer to unpack itself [message #1776837] Wed, 22 November 2017 08:17 Go to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Hi all,

I am having difficulties to reference an online .setup file with authentication [1]. The file is served from a company-hosted Bitbucket server that requires authentication. The URL looks like this:
https://<server>/projects/<bitbucket-project-name>/repos/<repo-name>/raw/setup/custom-ide.setup?at=refs%2Fheads%2Ffeatures%2Fsetup

When trying to add a user project with above URL, an error dialog saying "The URI ... does not contain a valid project." is shown. Since no login information is request, my suspicion is that user credentials are missing.

In order to diagnose the actual cause of the problem, I would like to run the Eclipse Installer with -Doomph.setup.ecf.trace=true. I have read somewhere that the installer can be advised to unpack itself so that I could edit the eclipse.ini file. However, I cannot find the corresponding option. I vaguely remember a confirmation dialog when switching to advanced mode where I once declined 'unpacking' the installer. And now I it seems impossible to revert this decision.

Removing the installer settings/caches that I could find (~/.eclipse, ~/.p2) doesn't seem to help. Could you tell me what (else) needs to be done?

Kind regards,
Rüdiger

[1] https://www.eclipse.org/forums/index.php/t/956285/
Re: How to force the installer to unpack itself [message #1776853 is a reply to message #1776837] Wed, 22 November 2017 09:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
We try to consistently look up properties using our PropertiesUtil which has this method:
  public static String getProperty(String key, String defaultValue)
  {
    String value = System.getProperty(key);
    if (value == null)
    {
      value = System.getenv(key);
      if (value == null && key.indexOf('.') != -1)
      {
        key = key.replace('.', '_');
        value = getProperty(key, defaultValue);
      }
    }

    if (value == null)
    {
      value = defaultValue;
    }

    return value;
  }
In other words, you should be able to set an environment property/variable and should be able to use _ in place of '.' in the environment variable name; you could try that in this case.

You can also use these instructions to manually unpackage the installer:

https://www.eclipse.org/forums/index.php/t/956285/

You could also look in your ~\AppData\Local\Temp folder for the folder "*.tmp" that's created when you run the installer and copy that elsewhere.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to force the installer to unpack itself [message #1776898 is a reply to message #1776853] Wed, 22 November 2017 15:21 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Thank you very much, Ed! I was able to copy the unpacked installer from the temp folder and run it with the system property.
Previous Topic:"Oomph Setup UI" seems to cause OOM at startup of Neon
Next Topic:How to install Eclipse Oxygen Scout behind a proxy
Goto Forum:
  


Current Time: Mon Dec 09 10:21:58 GMT 2024

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

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

Back to the top