|
|
|
|
Re: Suddenly my setup file is broken [message #1695579 is a reply to message #1695578] |
Sun, 17 May 2015 09:45 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Marco,
If found the contents in an older browser tab. Here is your partially
migrated model:
<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore
http://www.eclipse.org/oomph/predicates/1.0
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore
http://www.eclipse.org/oomph/setup/targlets/1.0
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore
http://www.eclipse.org/oomph/setup/workingsets/1.0
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
name="elexis3"
label="Elexis 3">
<setupTask
xsi:type="setup.p2:P2Task">
<requirement
name="org.eclipse.egit.feature.group"/>
<requirement
name="org.eclipse.mylyn.wikitext_feature.feature.group"/>
<requirement
name="net.jeeeyul.pdetools.feature.feature.group"/>
<requirement
name="org.sonatype.tycho.m2e.feature.feature.group"/>
<repository
url="${train.url}"/>
<repository
url="http://jeeeyul.github.io/update/"/>
<repository
url="http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.7.0/N/0.7.0.201309291400/"/>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Dsetup.branch.uri"
value="=${elexis-3-core.git.location|uri}/ch.elexis.sdk/Elexis3.setup"
vm="true">
<description>Redirect to the development version of the Elexis 3
setup</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="${setup.ws.dir|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
encoding="UTF-8"/>
<setupTask
xsi:type="setup:VariableTask"
name="elexis-3-core.git.location"
value="${setup.branch.dir/git/elexis-3-core.git}">
<annotation
source="http://www.eclipse.org/oomph/Migrator">
<detail
key="platform:/plugin/org.eclipse.oomph.base/model/legacy/setup.ecore#//ContextVariableTask/stringSubstitution">
<value>false</value>
</detail>
</annotation>
</setupTask>
<setupTask
xsi:type="setup:VariableTask"
name="elexis-3-base.git.location"
value="${setup.branch.dir/git/elexis-3-base.git}">
<annotation
source="http://www.eclipse.org/oomph/Migrator">
<detail
key="platform:/plugin/org.eclipse.oomph.base/model/legacy/setup.ecore#//ContextVariableTask/stringSubstitution">
<value>false</value>
</detail>
</annotation>
</setupTask>
<setupTask
xsi:type="setup:CompoundTask"
name="Elexis Eclipse Preferences">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.core.resources/encoding"
value="UTF-8"/>
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.core.resources/refresh.enabled"
value="true"/>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.jdt.ui">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_templates"
value="<?xml version="1.0"
encoding="UTF-8"
standalone="no"?><templates><template
autoinsert="true" context="java"
deleted="false" description="Add a static logger"
enabled="true"
name="elexis.log">$${:import(org.slf4j.Logger,
org.slf4j.LoggerFactory)}
private static final Logger log =
LoggerFactory.getLogger($${enclosing_type}.class);</template></templates>"/>
</setupTask>
</setupTask>
<stream name="master"
label="Master">
<setupTask
xsi:type="git:GitCloneTask"
location="${elexis-3-core.git.location}"
remoteURI="https://github.com/elexis/elexis-3-core.git"
checkoutBranch="master"/>
<setupTask
xsi:type="git:GitCloneTask"
location="${elexis-3-base.git.location}"
remoteURI="https://github.com/elexis/elexis-3-base.git"
checkoutBranch="master"/>
<setupTask
xsi:type="setup.targlets:TargletTask">
<targlet
name="Elexis 3">
<requirement
name="ch.elexis.sdk.feature.group"/>
<sourceLocator
rootFolder="${elexis-3-core.git.location}"/>
<sourceLocator
rootFolder="${elexis-3-base.git.location}"/>
<repositoryList
name="Elexis Repositories">
<repository
url="http://download.elexis.info/mirror.4.elexis/snapshot"/>
<repository
url="http://download.elexis.info/elexis.3.3rdparty.libraries/snapshot/"/>
</repositoryList>
</targlet>
</setupTask>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
<workingSet
name="Elexis-3-Core">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="ch.elexis.core"/>
</workingSet>
<workingSet
name="Elexis-3-Base">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="ch.elexis.base.ch.artikel"/>
</workingSet>
<workingSet
name="Features">
<predicate
xsi:type="predicates:NaturePredicate"
nature="org.eclipse.pde.FeatureNature"/>
</workingSet>
</setupTask>
</stream>
<logicalProjectContainer
xsi:type="setup:ProjectCatalog"
href="index:/org.eclipse.setup#//@projectCatalogs[name='com.github']"/>
</setup:Project>
On 17/05/2015 11:17 AM, Ed Merks wrote:
> Marco,
>
> Comments below.
>
>
> On 15/05/2015 10:56 AM, Marco Descher wrote:
>> Ok. Thanks for the answer ... whats the probability that this will
>> happen again?
> We've carefully designed the resource loading to support options like
> org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE so
> that no information is lost even if the serialization doesn't
> completely conform of the current state of the model.
>
> Also, we have in place semi-automatic migration of old models, but now
> I try to test it and I don't see a model at
> https://raw.githubusercontent.com/elexis/elexis-3-core/master/ch.elexis.sdk/Elexis3.setup
> anymore... We have dynamic versions of the old models that are used
> to load the resource in the editor and then migrates the instance so
> you can save it according to the latest version. Did you remove your
> *.setup that I can't find it anymore?
>> I'll see whether I am going to migrate.
> Just opening in the editor, should have migrated most of it; that's
> how I did all the other setups many months ago.
>> Any chance or link to use the old version of the installer?
> No, you really must use the latest.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04068 seconds