Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Suddenly my setup file is broken
icon9.gif  Suddenly my setup file is broken [message #1695478] Fri, 15 May 2015 06:12 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 198
Registered: October 2010
Location: Austria
Senior Member
I wrote a setup file which worked nice for Oomph in earlier version; now that I get requests from outside I wanted to document it s.t. others may use it more easily.

Trying to re-enact with the new Ooomph says that my setup file https://raw.githubusercontent.com/elexis/elexis-3-core/master/ch.elexis.sdk/Elexis3.setup is broken

https://dl.dropboxusercontent.com/u/72943400/broken.png

I don't know why or how as I did not modify it. Could anyone please give me a hint?

thanks.
Re: Suddenly my setup file is broken [message #1695487 is a reply to message #1695478] Fri, 15 May 2015 08:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Marco,

Comments below.

On 15/05/2015 8:12 AM, Marco Descher wrote:
> I wrote a setup file which worked nice for Oomph in earlier version;
> now that I get requests from outside I wanted to document it s.t.
> others may use it more easily.
How much earlier? I see namespaces such as
xmlns:setup="http://www.eclipse.org/CDO/releng/setup/1.0" which imply
this is from before Oomph was even a separate project.
> Trying to re-enact with the new Ooomph says that my setup file
> https://raw.githubusercontent.com/elexis/elexis-3-core/master/ch.elexis.sdk/Elexis3.setup
> is broken
>
>
We helped migrate all the setups in the catalog, but that was quite some
time ago.
>
> I don't know why or how as I did not modify it.
Look at some of the newer ones...
> Could anyone please give me a hint?
Given it's not so big, it's probably best just to create a new one with
the same values, and to look closely at some existing setups...
>
> thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Suddenly my setup file is broken [message #1695488 is a reply to message #1695487] Fri, 15 May 2015 08:56 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 198
Registered: October 2010
Location: Austria
Senior Member
Ok. Thanks for the answer ... whats the probability that this will happen again? I'll see whether I am going to migrate. Any chance or link to use the old version of the installer?
Re: Suddenly my setup file is broken [message #1695578 is a reply to message #1695488] Sun, 17 May 2015 09:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
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/
Re: Suddenly my setup file is broken [message #1695579 is a reply to message #1695578] Sun, 17 May 2015 09:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section
name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;section
name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item
value=&quot;true&quot;
key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item
value=&quot;false&quot;
key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item
value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item
value=&quot;2&quot;
key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item
value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;
encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer
configured=&amp;quot;true&amp;quot;
group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot;
linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot;
sortWorkingSets=&amp;quot;false&amp;quot;
workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet
editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot;
factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot;
id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other
Projects&amp;quot; name=&amp;quot;Other
Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet
workingSetName=&amp;quot;Other
Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets
workingSetName=&amp;quot;Other
Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot;
key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
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="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?>&lt;templates>&lt;template
autoinsert=&quot;true&quot; context=&quot;java&quot;
deleted=&quot;false&quot; description=&quot;Add a static logger&quot;
enabled=&quot;true&quot;
name=&quot;elexis.log&quot;>$${:import(org.slf4j.Logger,
org.slf4j.LoggerFactory)}&#xA;private static final Logger log =
LoggerFactory.getLogger($${enclosing_type}.class);&lt;/template>&lt;/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/
Re: Suddenly my setup file is broken [message #1695583 is a reply to message #1695579] Sun, 17 May 2015 10:45 Go to previous message
Marco Descher is currently offline Marco DescherFriend
Messages: 198
Registered: October 2010
Location: Austria
Senior Member
Hy Ed,

I appreciate your feedback and work a lot!!! I found out that I already created a newer version of the setup file which works with the newer version. As it was a while ago (after setting it up, it just worked and I had no reason to touch it) I forgot about it! Instead of giving you a straight answer in the forum, sorry for that, I got carried away writing a documentation on how to use it -> https://github.com/elexis/elexis-3-core/tree/master/ch.elexis.sdk - after that I just forgot about the answer Sad

Thanks a lot for your help again, and sorry for incurring this additional work!
Previous Topic:Trying to create project setup for non-eclipse projects
Next Topic:[SOLVED] Oomph was not installed in a proper way from a setup
Goto Forum:
  


Current Time: Thu Dec 26 12:08:34 GMT 2024

Powered by FUDForum. Page generated in 0.04068 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top