|
|
|
|
|
Re: Testing changes in project setup files [message #1816484 is a reply to message #1816468] |
Tue, 29 October 2019 23:34   |
Eclipse User |
|
|
|
Yes, so using Navigate -> Open Setup -> <your-project-stream> , which always opens your project's setup, because of the redirection, that setup is in fact (and will open) the file in the clone, which is also typically a file in your workspace. That's also the version used by Help -> Perform Setup Tasks... so you can make changes locally and perform them in the already-running IDE. Note too that the Perform wizard that comes generally starts on the Confirmation page, but you can go back to the Variables page and use the "Show all variables" check mark to see all the variables and even change them, e.g., to change the target platform choice.
When authoring setups it's a good idea to turn on Live Validation (on the menu) if it's not already turned on and it's good to consider what is being displayed in the outline because here you can see other types of errors you might make, e.g., using a variable name without having defined the variable itself. Also, in the "Unresolved Variables" section you will see all the variables that will be prompted for a value from the user (and for any variable you can see all the places where that variable is used in other setup tasks). The Outline is kind of a preview of what you will see in the wizards when using this setup.
|
|
|
|
|
Re: Testing changes in project setup files [message #1858210 is a reply to message #1858206] |
Thu, 23 March 2023 03:26  |
Eclipse User |
|
|
|
I'm not sure exactly what resources are all involved in your question...
In general, if you want to test changes locally for resources changed locally, but the references to those resources are remote (e.g., in a git clone), you will need a redirection from the remote URI to the local URI. That's why most project setups include a task similar to this:<?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">
<description>Redirect to the development version of the releng setup model.</description>
</setup:EclipseIniTask>
Then the eclipse.ini will contain-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-Duser.home=D:\Users\merks In this case it's a folder redireciton (both end with /).
Any system property that starts with oomph.redirection. will be added to the URIMap for this purpose. If you want this in the installer, you can run it with
<eclipse-inst-executable> -vmargs -Doomph.redirection.foo=https://...->file:/...
If you want to test like for a new user, you can use use -Duser.home=<folder-you-can-delete-later> -Doomph.setup.user.home.redirect=true to specify where the home folder is located and to specify that the installation itself should also contain the same -Duser.home=... in the eclipse.ini.
|
|
|
Powered by
FUDForum. Page generated in 0.05060 seconds