-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->setups/
Are your repositories private? I.e., does access require authentication? I added some help for that in the wiki:
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Accessing_Setups_that_Require_Authentication
Unfortunately what you show will not work because the source and target of a redirection must both be absolute URIs.
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations
With such a thing, you could just drag and drop the Configuration link onto the installer. If your Configuration properly specifies an absolute URI that refers to your Project setup, ideally via a URI that navigates through the Project Catalog, the necessary redirection to redirect the redirectable Project Catalog to your Project Catalog will be done automatically (at least that's how it works when I last tested it).
But in the end, you will likely be best off using a Configuration.
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Automation_and_Specialization_with_Configurations
With such a thing, you could just drag and drop the Configuration link onto the installer. If your Configuration properly specifies an absolute URI that refers to your Project setup, ideally via a URI that navigates through the Project Catalog, the necessary redirection to redirect the redirectable Project Catalog to your Project Catalog will be done automatically (at least that's how it works when I last tested it).
The installer application supports command line arguments so you could also specify a Configuration's file path or URL link on the command line to apply it automatically.
-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->file:/path/my.projects.catalog.setup
-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->https://our.git.lab/our-project/oomph/raw/master/project.setup
-Doomph.setup.ecf.trace=true
> ECF: bogus:index:/redirectable.projects.setup uri=bogus:index:/redirectable.projects.setup
> ECF: bogus:index:/redirectable.projects.setup cacheURI=file:/home/torsten/.eclipse/org.eclipse.oomph.setup/cache/bogus_index__redirectable.projects.setup
> ECF: bogus:index:/redirectable.projects.setup eTag=null
> ECF: bogus:index:/redirectable.projects.setup expectedETag=null
> ECF: bogus:index:/redirectable.projects.setup authorizationHandler=org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$AuthorizationHandlerImpl@21719a0 authorizations: {our.git.lab=Authorization [user=****, password=**** securePreferences: org.eclipse.oomph.preferences.util.PreferencesUtil$AutoRefreshSecurePreferencesWrapper@85ffca1f uiServices: org.eclipse.oomph.p2.internal.ui.P2ServiceUI@77ee25f1
> ECF: bogus:index:/redirectable.projects.setup trying=0
> ECF: bogus:index:/redirectable.projects.setup triedReauthorization=0
> ECF: bogus:index:/redirectable.projects.setup authorization=Authorization [user=, password=]
> ECF: bogus:index:/redirectable.projects.setup triedProxyReauthorization=0
> ECF: bogus:index:/redirectable.projects.setup proxyAuthorization=null
> ECF: bogus:index:/redirectable.projects.setup transferLister.exception
java.net.MalformedURLException: unknown protocol: bogus
at java.base/java.net.URL.<init>(URL.java:641)
at java.base/java.net.URL.fromURI(URL.java:708)
at java.base/java.net.URI.toURL(URI.java:1116)
at org.eclipse.ecf.provider.filetransfer.identity.FileTransferID.getURL(FileTransferID.java:78)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:877)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:576)
at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$InputStreamConnectionHandler.sendConnectionRequest(ECFURIHandlerImpl.java:1928)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl$ConnectionHandler.process(ECFURIHandlerImpl.java:1648)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1314)
at org.eclipse.oomph.setup.internal.core.util.ResourceMirror$LoadJob.perform(ResourceMirror.java:224)
at org.eclipse.oomph.util.WorkerPool$Worker.run(WorkerPool.java:428)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
~
?oomph_basic_auth=true
You are trying to redirect a single file.
When trying to redirect a folder, both URIs should end in / but when redirecting a single file, neither should end in /.-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->file:/path/my.projects.catalog.setup
-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->https://our.git.lab/our-project/oomph/raw/master/
> ECF: https://our.git.lab/our-project/oomph/raw/master/ returning successful results
Ed Merks wrote on Tue, 27 August 2019 06:47You are trying to redirect a single file.
When trying to redirect a folder, both URIs should end in / but when redirecting a single file, neither should end in /.-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->file:/path/my.projects.catalog.setup
Thank you, so I changed it to:
-Doomph.redirection.myProjectCatalog=index:/redirectable.projects.setup->https://our.git.lab/our-project/oomph/raw/master/
The log doesn't give out any error:
Quote:> ECF: https://our.git.lab/our-project/oomph/raw/master/ returning successful results
However, I can't find the project files. I also looked in the "Select Catalogs" combo box. Do I have to create a project catalog to make this work? I only have project model setups so far.
https://gitlab-example.com/project/raw/branch/repo-path/Example.setup?oomph_form=b%27users/sign_in%27#/]]>
When you first visit your gitlab server, how do you authenticate? I would have assumed you'd visit a login/sign-in page, not using basic authenticate where the browser pops up a credentials dialog. Isn't that the case? I.e., doesn't this case from the wiki apply?https://gitlab-example.com/project/raw/branch/repo-path/Example.setup?oomph_form=b%27users/sign_in%27#/
The installer application supports command line arguments so you could also specify a Configuration's file path or URL link on the command line to apply it automatically.
./eclipse-inst file:///home/torsten/MyConfiguration.setup