Startup tasks not executed if project.setup is pulled from redirected setup [message #1741289] |
Wed, 24 August 2016 07:51  |
Eclipse User |
|
|
|
Hi,
I have a project.setup file that contains some tasks for downloading and extratcing files and resource modification for bootstrapping and some tasks for eclipse workspace preferences, so startup tasks.
I redirect to a hosted org.eclipse.setup file that contains my setup.project file as "projectCatalog".
When I add the project.setup file in the advanced installer manually and install my project from that file everything is fine; at first startup the preferences are set and working sets are created.
If install using the hosted project.setup file that then none of the startup tasks are executed. The "Setup tasks" windows doesn't contain any of them. I'm 100% sure that the files are identical, I actually add them from my HTTP repository for the first test. So the only difference is how the installer accesses them. How is that possible?
setup.log from error case:
[2016-08-24 14:26:50] Performing post bootstrap tasks
[2016-08-24 14:26:50]
[2016-08-24 14:26:50] Launching the installed product...
(EOF)
setup.log from positive case:
[2016-08-24 14:07:41] Performing post bootstrap tasks
[2016-08-24 14:07:41]
[2016-08-24 14:07:41] Launching the installed product...
[2016-08-24 14:08:44] Executing startup tasks
[2016-08-24 14:08:45] Java(TM) SE Runtime Environment 1.8.0_60-b27
[2016-08-24 14:08:45] Product org.eclipse.products.epp.package.java.latest.released
... A lot more lines
[Updated on: Wed, 24 August 2016 08:28] by Moderator
|
|
|
|
|
|
|
Re: Startup tasks not executed if project.setup is pulled from redirected setup [message #1741429 is a reply to message #1741413] |
Thu, 25 August 2016 01:47   |
Eclipse User |
|
|
|
Simon,
Is the project simply contained in the catalog, or is it in a separate resource that's cross resource contained by the catalog? If the latter, what does the URI look like? Is it an absolute URI?
Note that the projects are referenced by the workspace.setup. You can use Navigate -> Open Setup -> Workspace to open it. From the context menu of the setup editor, you can use Open Text Editor to look at the file textually. What does the URI for the reference to the project setup look like? I suspect in both cases the project reference is present, but in the incorrectly functioning case that it's an unresolved proxy. Hence the question about how the project catalog references or contains the project setup, and this followup question about how the reference look in the workspace.setup.
When using -Doomph.redirection.*, the * has no semantic significance, other than the fact that multiple Eclipse Ini tasks can be merged, so if there is more than one task for -Dxyz=abc and -Dxyz=def you'll end up with a single task, so definitely it's good to make the * part unique in your overall context.
|
|
|
|
|
|
|
Re: Startup tasks not executed if project.setup is pulled from redirected setup [message #1775000 is a reply to message #1774999] |
Mon, 23 October 2017 07:31  |
Eclipse User |
|
|
|
Here's one from the Oomph.setup:<?xml version="1.0" encoding="UTF-8"?>
<setup:EclipseIniTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
option="-Doomph.redirection.setups"
value="=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->${git.clone.oomph.location|uri}/setups/"
vm="true"/>
Note it's a VM option (not a program option), and that it does use -D to specify system property, and that the value specifically does include the "=".
|
|
|
Powered by
FUDForum. Page generated in 0.09263 seconds