Issue pulling preferences in project pointed to from project catalog [message #1783084] |
Wed, 07 March 2018 13:52 |
Christian Basile Messages: 2 Registered: March 2018 |
Junior Member |
|
|
Hi,
I have a project catalog hosted on github that points to a few projects, one project that only sets eclipse preferences. This project works fine when solely selected from my local installation (ie. clicking the green '+' in the Oomph Installer and locating the 'Preferences.setup' file). However, when I add the Project Catalog to GitHub and point to this Preference.setup project, these preferences do not set my eclipse preferences. (Note. The other projects in the catalog, which install plugins or set Eclipse.ini args, work properly).
eclipse-inst.ini
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
--launcher.appendVmargs
--launcher.XXMaxPermSize
256M
-name
Eclipse Installer
-data
@noDefault
-vmargs
-Doomph.redirection.projectCatalog=index:/redirectable.projects.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/AtomProjects.setup
-Doomph.redirection.setupDir=index:/redirectable.products.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups
-Xms256M
-Xmx1024M
Projects.setup
<?xml version="1.0" encoding="UTF-8"?>
<setup:ProjectCatalog
xmi:version="2.0"
xmlns:xmi="{SITENS}{WORLDWIDE}omg.org/XMI"
xmlns:xsi="{SITENS}{WORLDWIDE}w3.org/2001/XMLSchema-instance"
xmlns:setup="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/1.0"
name="atom.projects"
label="Atom Projects">
<annotation
source="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/BrandingInfo">
<detail
key="imageURI">
<value>{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/resources/images/avengers_42x42.png</value>
</detail>
<detail
key="siteURI">
<value>{SITE}projects.eclipse.org/</value>
</detail>
</annotation>
<setupTask
xsi:type="setup:CompoundTask"
name="Global Variables">
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.target.platform"
defaultValue="None"
storageURI="scope://Workspace"
label="Target Platform">
<annotation
source="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/GlobalVariable"/>
<choice
value="Photon"
label="Eclipse Photon - 4.8"/>
<choice
value="Oxygen"
label="Eclipse Oxygen - 4.7"/>
<choice
value="Neon"
label="Eclipse Neon - 4.6"/>
<choice
value="Mars"
label="Eclipse Mars - 4.5"/>
<choice
value="Luna"
label="Eclipse Luna - 4.4"/>
<choice
value="Kepler"
label="Eclipse Kepler - 4.3"/>
<choice
value="Juno"
label="Eclipse Juno - 4.2"/>
<choice
value="Indigo"
label="Eclipse Indigo - 3.7"/>
<choice
value="Helios"
label="Eclipse Helios - 3.6"/>
<choice
value="Galileo"
label="Eclipse Galileo - 3.5"/>
<choice
value="None"
label="None"/>
<description>Choose the compatibility level of the target platform</description>
</setupTask>
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.api.baseline.target.platform"
value="None"
storageURI="scope://Workspace"
label="API Baseline Target Platform">
<annotation
source="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/GlobalVariable"/>
<choice
value="Photon"
label="Eclipse Photon - 4.8"/>
<choice
value="Oxygen"
label="Eclipse Oxygen - 4.7"/>
<choice
value="Neon"
label="Eclipse Neon - 4.6"/>
<choice
value="Mars"
label="Eclipse Mars - 4.5"/>
<choice
value="Luna"
label="Eclipse Luna - 4.4"/>
<choice
value="Kepler"
label="Eclipse Kepler - 4.3"/>
<choice
value="Juno"
label="Eclipse Juno - 4.2"/>
<choice
value="Indigo"
label="Eclipse Indigo - 3.7"/>
<choice
value="Helios"
label="Eclipse Helios - 3.6"/>
<choice
value="Galileo"
label="Eclipse Galileo - 3.5"/>
<choice
value="None"
label="None"/>
<description>Choose the compatibility level of the target platform for the modular API baseline</description>
</setupTask>
</setupTask>
<setupTask
xsi:type="setup:WorkspaceTask"
id="workspace"/>
<setupTask
xsi:type="setup:ResourceCreationTask"
content="MAX_RECENT_WORKSPACES=5
RECENT_WORKSPACES=${workspace.location|property}
RECENT_WORKSPACES_PROTOCOL=3
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1"
targetURL="configuration:/.settings/org.eclipse.ui.ide.prefs"/>
<setupTask
xsi:type="setup:TextModifyTask"
url="configuration:/config.ini">
<modification
pattern="osgi\.instance\.area\.default=(@user\.home/workspace)">
<substitution>${workspace.location|path}</substitution>
</modification>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.projectCatalog"
value="=index:/org.eclipse.projects.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/AtomProjects.setup"
vm="true">
<description></description>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.setupDir"
value="=index:/setups/->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups"
vm="true">
<description></description>
</setupTask>
<project name="GeneralContainer"
label="General">
<project
href="{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups/RequiredPlugins.setup#/"/>
<project
href="{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups/CommonPreferencesX.setup#/"/>
<project
href="{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups/EclipseInitialization.setup#/"/>
</project>
<description>Atom Projects provides cool projects.</description>
</setup:ProjectCatalog>
Preferences.stup
<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
xmi:version="2.0"
xmlns:xmi="{SITENS}{WORLDWIDE}omg.org/XMI"
xmlns:xsi="{SITENS}{WORLDWIDE}w3.org/2001/XMLSchema-instance"
xmlns:jdt="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/jdt/1.0"
xmlns:setup="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/1.0"
xmlns:setup.p2="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/p2/1.0"
xmlns:setup.targlets="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/targlets/1.0"
xmlns:setup.workingsets="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/workingsets/1.0"
xsi:schemaLocation="{SITENS}{WORLDWIDE}eclipse.org/oomph/setup/jdt/1.0 {SITENS}git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore {SITENS}{WORLDWIDE}eclipse.org/oomph/setup/targlets/1.0 {SITENS}git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore {SITENS}{WORLDWIDE}eclipse.org/oomph/setup/workingsets/1.0 {SITENS}git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
name="AtomProjectGitHub.git"
label="Common PreferencesX">
<setupTask
xsi:type="jdt:JRETask"
version="JavaSE-1.8"
location="${jre.location-1.8}">
<description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Xmx"
value="1024m"
vm="true">
<description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup:ResourceCreationTask"
excludedTriggers="STARTUP MANUAL"
content="<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
	<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
		<item value="true" key="group_libraries"/>
		<item value="false" key="linkWithEditor"/>
		<item value="2" key="layout"/>
		<item value="2" key="rootMode"/>
		<item value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&#x0A;&lt;packageExplorer configured=&quot;true&quot; group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;2&quot; sortWorkingSets=&quot;false&quot; workingSetName=&quot;&quot;&gt;&#x0D;&#x0A;&lt;localWorkingSetManager&gt;&#x0D;&#x0A;&lt;workingSet editPageId=&quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&quot; factoryID=&quot;org.eclipse.ui.internal.WorkingSetFactory&quot; id=&quot;1382792884467_1&quot; label=&quot;Other Projects&quot; name=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;/localWorkingSetManager&gt;&#x0D;&#x0A;&lt;activeWorkingSet workingSetName=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;allWorkingSets workingSetName=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;/packageExplorer&gt;" key="memento"/>
	</section>
</section>
"
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
encoding="UTF-8">
<description>Initialize JDT's package explorer to show working sets as its root objects</description>
</setupTask>
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.target.platform"
defaultValue="Neon"
storageURI="scope://Workspace"/>
<setupTask
xsi:type="setup.p2:P2Task">
<description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup.targlets:TargletTask">
<targlet
name="${scope.project.label}"
activeRepositoryList="${eclipse.target.platform}">
<requirement
name="org.eclipse.sdk.feature.group"/>
<requirement
name="*"/>
<sourceLocator
rootFolder="${git.clone.AtomProjectGitHub.git.location}"
locateNestedProjects="true"/>
<repositoryList
name="Photon">
<repository
url="{SITENS}download.eclipse.org/releases/photon"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Oxygen">
<repository
url="{SITENS}download.eclipse.org/releases/oxygen"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Neon">
<repository
url="{SITENS}download.eclipse.org/releases/neon"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Mars">
<repository
url="{SITENS}download.eclipse.org/releases/mars"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Luna">
<repository
url="{SITENS}download.eclipse.org/releases/luna"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Kepler">
<repository
url="{SITENS}download.eclipse.org/releases/kepler"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
<repositoryList
name="Juno">
<repository
url="{SITENS}download.eclipse.org/releases/juno"/>
<repository
url="{SITENS}download.eclipse.org/cbi/updates/license"/>
</repositoryList>
</targlet>
</setupTask>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
<description>The dynamic working sets for ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="Workspace Preferences">
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.core.resources">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.core.resources/description.autobuilding"
value="true"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.core.resources/refresh.lightweight.enabled"
value="true"/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.jdt.core">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.GRADLE_HOME"
value="${GRADLE_HOME}"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.GRADLE_REPO"
value="${USERPROFILE}/.gradle/caches"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.core/org.eclipse.jdt.core{COM}piler.codegen.targetPlatform"
value="1.8"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.core/org.eclipse.jdt.core{COM}piler{COM}pliance"
value="1.8"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.core/org.eclipse.jdt.core{COM}piler.source"
value="1.8"/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.ui">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.ui/SHOW_MEMORY_MONITOR"
value="true"/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.ui.ide">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.ui.ide/SAVE_ALL_BEFORE_BUILD"
value="true"/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.ui.workbench">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.ui.workbench/RUN_IN_BACKGROUND"
value="true"/>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="org.springsource.ide.eclipse.gradle.core">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.springsource.ide.eclipse.gradle.core/org.springsource.ide.eclipse.gradle.core.preferences.GradlePreferences.DISTRIBUTION"
value="{SITENS}artifactory.ops.x-x.org/artifactory/x
-ml-prod/org/x/gbs/x-gradle/3.2.1.61/x-gradle-3.2.1.61-bin.zip"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.springsource.ide.eclipse.gradle.core/org.springsource.ide.eclipse.gradle.core.preferences.GradlePreferences.JAVA_HOME_JRE"
value="jdk1.8.0_65"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.springsource.ide.eclipse.gradle.core/org.springsource.ide.eclipse.gradle.core.preferences.GradlePreferencesUSE_CUSTOM_TOOLING_MODEL"
value="false"/>
</setupTask>
</setupTask>
<stream name="master"
label="Master">
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.AtomProjectGitHub.git"
value="={SITE}git.eclipse.org/c/chrisBas/AtomProjectGitHub.git.git/plain//CommonPreferencesX.setup->${git.clone.AtomProjectGitHub.git.location|uri}//CommonPreferencesX.setup"
vm="true">
<description>Set an Oomph redirection system property to redirect the logical location of this setup to its physical location in the Git clone.</description>
</setupTask>
</stream>
<logicalProjectContainer
xsi:type="setup:ProjectCatalog"
href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
<description>Common PreferencesX provides cool stuff.</description>
</setup:Project>
[Updated on: Mon, 12 March 2018 18:02] Report message to a moderator
|
|
|
|
Re: Issue pulling preferences in project pointed to from project catalog [message #1783240 is a reply to message #1783232] |
Fri, 09 March 2018 13:42 |
Christian Basile Messages: 2 Registered: March 2018 |
Junior Member |
|
|
Is "Preferences.stup" a typo? I see three references in GeneralContainer to project setups, but I don't see any reference to Preferences.stup or Preferences.setup. How is that project referenced by the catalog?
Sorry, yes - I had meant to fix the names, after the post. Preferences.setup is actually CommonPreferencesX.setup.
It is refererenced in the file "Projects.setup" (which is actually called"AtomProjects.setup" - again, forgot to fix that) by the line:
<project
href="{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups/CommonPreferencesX.setup#/"/>
If you use Navigate -> Open Setup -> Workspace, do you see that it references the expected project? From the context menu of the Setup Editor, you can use Open Text Editor to see the source and what the stream references look like. If you ensure that Setup Editor -> Live Validation is enabled, you should see if the link has resolved properly or not....
Yes, It does appear to show the correct stream. The only thing that isn't loading in the workspace is the CommonPreferencesX.setup for some reason. If it helps, this is the workspace.setup file:
<?xml version="1.0" encoding="UTF-8"?>
<setup:Workspace
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="workspace">
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.target.platform"
value="Neon"
defaultValue="Neon"
label="Target Platform">
<description>Choose the compatibility level of the target platform</description>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="Atom Projects">
<restriction
xsi:type="setup:ProjectCatalog"
href="index:/org.eclipse.setup#//@projectCatalogs[name='atom.projects']"/>
<setupTask
xsi:type="setup:CompoundTask"
name="General">
<restriction
xsi:type="setup:Project"
href="index:/org.eclipse.setup#//@projectCatalogs[name='atom.projects']/@projects[name='GeneralContainer']"/>
<setupTask
xsi:type="setup:CompoundTask"
name="Common PreferencesX">
<restriction
xsi:type="setup:Project"
href="index:/org.eclipse.setup#//@projectCatalogs[name='atom.projects']/@projects[name='GeneralContainer']/@projects[name='AtomProjectGitHub.git']"/>
<setupTask
xsi:type="setup:VariableTask"
type="FOLDER"
name="git.clone.AtomProjectGitHub.git.location"
value="C:\Users\baschr\AtomProjectGitHub-git-master9\git\AtomProjectGitHub"
label="Common PreferencesX Git clone location">
<description>The absolute folder location where the Common PreferencesX Git clone is located</description>
</setupTask>
</setupTask>
</setupTask>
</setupTask>
<stream href="index:/org.eclipse.setup#//@projectCatalogs[name='atom.projects']/@projects[name='GeneralContainer']/@projects[name='AtomProjectGitHub.git']/@streams[name='master']"/>
</setup:Workspace>
|
|
|
Re: Issue pulling preferences in project pointed to from project catalog [message #1783271 is a reply to message #1783240] |
Sat, 10 March 2018 07:36 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
These two tasks seem questionable: <setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.projectCatalog"
value="=index:/org.eclipse.projects.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/AtomProjects.setup"
vm="true">
<description></description>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.setupDir"
value="=index:/setups/->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups"
vm="true">
<description></description>
</setupTask>
Your eclipse-inst.ini showed this:-Doomph.redirection.projectCatalog=index:/redirectable.projects.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/AtomProjects.setup
-Doomph.redirection.setupDir=index:/redirectable.products.setup->{SITE}raw.githubusercontent{COM}/chrisBas/AtomProjectGitHub/master/setups
It's not clear to me what you are trying to redirect in both the installer and of course in the installation, but they need to be consistent of course. In the installer you appear to redirect to your own project and product catalogs, but is AtomProjectGitHub/master/setups really a setup file containing product setups; perhaps another typo? In any case your first EclipseIni task redirects index:/org.eclipse.projects.setup not index:/redirectable.projects.setup so that's inconsistent in terms of what the installer sees and what the installation sees. The second EclipseIni task redirects index:/setups/, i.e., the whole setup folder to perhaps a copy of it in your web site, but if that's the case, the target URL should also end with a / so that it is a folder mapping.
So I'm really confused about what you're redirecting, but you should redirect *.setup files to *.setup files and should redirect folders to folders (in which case each URI should end with a /). Probably you should only redirect index:/redirectable.projects.setup (and index:/redirectable.products.setup if you have products) and you should have the same EclipseIni tasks as you have in your eclipse-inst.ini.
When you have this working properly, Navigate -> Open Setup should show a menu with the Labels of your Product Versions and your Project Streams.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04959 seconds