Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Triquetrum/Releng/New Eclipse Version"

(EMF Migration)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
Periodically, Eclipse gets updated and Triquetrum should be updated to the most recent version of Eclipse.
 +
 +
Below are the changes necessary.
 +
 +
See [[Milestone and Release Builds]]
 +
 
== Update the tpd files ==
 
== Update the tpd files ==
 
# We use [[Triquetrum/Target_Platform_Definition | Target Platform Definition (.tpd) files]] to define .target files, so edit the .tpd files and change from the previous Eclipse to the new Eclipse
 
# We use [[Triquetrum/Target_Platform_Definition | Target Platform Definition (.tpd) files]] to define .target files, so edit the .tpd files and change from the previous Eclipse to the new Eclipse
# Right click on the .tpd file and select "Create Target Definition File", which will create the .target file
+
## There are two .tpd files in releng, both must be edited
# Right click again on the .tpd file and select "Set Target Platform" (Or open the .target file that was just created and set the target platform there)
+
### org.eclipse.triquetrum.python.rpc.platform.tpd and
 +
### org.eclipse.triquetrum.target.platform.tpd
 +
## For both files update
 +
### The orbit number for the Eclipse release, see https://download.eclipse.org/tools/orbit/downloads/
 +
### the Eclipse version number (ex: change 2019-09 to 2020-03)
 +
# Right click on each .tpd file and select "Create Target Definition File", which will create the .target file
 +
# Right click again on the org.eclipse.triquetrum.target.platform.tpd file and select "Set Target Platform" (Or open the .target file that was just created and set the target platform there)
  
 
== Check for other instances ==
 
== Check for other instances ==
Line 9: Line 21:
 
   git clone https://github.com/eclipse/triquetrum/
 
   git clone https://github.com/eclipse/triquetrum/
 
   cd triquetrum
 
   cd triquetrum
   find . -type f | xargs grep neon
+
   find . -type f | xargs grep 2019-09
 +
 
 +
Check for Eclipse and Orbit versions in [https://github.com/eclipse/triquetrum/blob/master/features/org.eclipse.triquetrum.workflow.rcp.feature/feature.xml features/org.eclipse.triquetrum.workflow.rcp.feature/feature.xml]
 +
 
 +
== Migrate EMF ==
 +
Periodically, the EMF files need to be updated.
 +
 
 +
See [https://github.com/eclipse/triquetrum/issues/353 'Maybe a migration is needed' warnings in the log]
 +
 
 +
The .view files in [https://github.com/eclipse/triquetrum/tree/master/plugins/editor/org.eclipse.triquetrum.workflow.model.viewmodel/viewmodels plugins/editor/org.eclipse.triquetrum.workflow.model.viewmodel/viewmodels] need to be updated.
 +
 
 +
To do this, EMF needs to be installed via Help -> Install New Software.  It is not quite clear what parts of EMF needs to be installed, try
 +
* EMF - Eclipse Modeling Framework SDK
 +
* EMF Forms SDK
 +
 
 +
When you click on the .view file, then you should be prompted to migrate the file.
 +
 
 +
If you get an error, then the line number of the error might be in the message.  For example, below the error was in line 28:
 +
 
 +
  This view cannot be displayed.
 +
  Reason: org.eclipse.emf.ecore.xmi.IllegalValueException:
 +
    Value 'org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@5407cc39
 +
    (eClass: org.eclipse.emf.ecore.impl.EClassImpl@486b35d5
 +
        (name: FeaturePathDomainModelReference)
 +
        (instanceClassName: null)
 +
        (abstract: false, interface: false))
 +
    (mixed: [ecore.xml.type:text=
 +
            , domainModelEFeature=org.eclipse.emf.ecore.impl.EAttributeImpl@6689f455
 +
        (eProxyURI: http://www.eclipse.org/triquetrum#/NamedObj/name), ecore.xml.type:text=
 +
          ], anyAttribute: null)' is not legal.
 +
  (platform:/resource/org.eclipse.triquetrum.workflow.model.viewmodel/viewmodels/Actor.view, 28, 206)
 +
 
 +
== Update Tycho ==
 +
# Review the [https://wiki.eclipse.org/Tycho/Release_Notes Tycho Release_Notes] and find the latest released version of Tycho.
 +
# Edit [https://github.com/eclipse/triquetrum/blob/master/pom.xml pom.xml] and update <code>tycho-version</code>.
  
 
== Update the version number ==
 
== Update the version number ==
Line 18: Line 64:
 
## The new Eclipse version should appear in the splash screen
 
## The new Eclipse version should appear in the splash screen
 
# Exit Eclipse and run  "mvn clean verify"
 
# Exit Eclipse and run  "mvn clean verify"
# Test out the installer, which will be in org.eclipse.triquetrum.repository/target/products
+
# Test out the installer, which will be in releng/org.eclipse.triquetrum.repository/target/products
 
   mkdir tmp
 
   mkdir tmp
 
   cd tmp
 
   cd tmp
   unzip ../org.eclipse.triquetrum.repository/target//products/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.1.0-macosx.cocoa.x86_64.zip
+
   unzip ../releng/org.eclipse.triquetrum.repository/target/products/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0M1-macosx.cocoa.x86_64.zip
  
 
== See Also ==
 
== See Also ==
 +
* [[Milestone and Release Builds]]
 
* [[SimRel/Simultaneous_Release_Requirements | Simultaneous Release Requirements]]
 
* [[SimRel/Simultaneous_Release_Requirements | Simultaneous Release Requirements]]
 
* [https://github.com/eclipse/triquetrum/issues/104 104: Update Triquetrum to Neon]
 
* [https://github.com/eclipse/triquetrum/issues/104 104: Update Triquetrum to Neon]

Latest revision as of 20:16, 1 October 2020

Periodically, Eclipse gets updated and Triquetrum should be updated to the most recent version of Eclipse.

Below are the changes necessary.

See Milestone and Release Builds

Update the tpd files

  1. We use Target Platform Definition (.tpd) files to define .target files, so edit the .tpd files and change from the previous Eclipse to the new Eclipse
    1. There are two .tpd files in releng, both must be edited
      1. org.eclipse.triquetrum.python.rpc.platform.tpd and
      2. org.eclipse.triquetrum.target.platform.tpd
    2. For both files update
      1. The orbit number for the Eclipse release, see https://download.eclipse.org/tools/orbit/downloads/
      2. the Eclipse version number (ex: change 2019-09 to 2020-03)
  2. Right click on each .tpd file and select "Create Target Definition File", which will create the .target file
  3. Right click again on the org.eclipse.triquetrum.target.platform.tpd file and select "Set Target Platform" (Or open the .target file that was just created and set the target platform there)

Check for other instances

Check out a clean tree and search for the previous Eclipse:

 git clone https://github.com/eclipse/triquetrum/
 cd triquetrum
 find . -type f | xargs grep 2019-09

Check for Eclipse and Orbit versions in features/org.eclipse.triquetrum.workflow.rcp.feature/feature.xml

Migrate EMF

Periodically, the EMF files need to be updated.

See 'Maybe a migration is needed' warnings in the log

The .view files in plugins/editor/org.eclipse.triquetrum.workflow.model.viewmodel/viewmodels need to be updated.

To do this, EMF needs to be installed via Help -> Install New Software. It is not quite clear what parts of EMF needs to be installed, try

  • EMF - Eclipse Modeling Framework SDK
  • EMF Forms SDK

When you click on the .view file, then you should be prompted to migrate the file.

If you get an error, then the line number of the error might be in the message. For example, below the error was in line 28:

 This view cannot be displayed.
 Reason: org.eclipse.emf.ecore.xmi.IllegalValueException: 
    Value 'org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@5407cc39 
    (eClass: org.eclipse.emf.ecore.impl.EClassImpl@486b35d5 
       (name: FeaturePathDomainModelReference) 
       (instanceClassName: null)
       (abstract: false, interface: false))
    (mixed: [ecore.xml.type:text=
           , domainModelEFeature=org.eclipse.emf.ecore.impl.EAttributeImpl@6689f455 
       (eProxyURI: http://www.eclipse.org/triquetrum#/NamedObj/name), ecore.xml.type:text=
         ], anyAttribute: null)' is not legal. 
 (platform:/resource/org.eclipse.triquetrum.workflow.model.viewmodel/viewmodels/Actor.view, 28, 206)

Update Tycho

  1. Review the Tycho Release_Notes and find the latest released version of Tycho.
  2. Edit pom.xml and update tycho-version.

Update the version number

See Milestone Builds

Testing

  1. Go to the org.eclipse.triquetrum.repository/Triquetrum.product file and select Run.
    1. The new Eclipse version should appear in the splash screen
  2. Exit Eclipse and run "mvn clean verify"
  3. Test out the installer, which will be in releng/org.eclipse.triquetrum.repository/target/products
  mkdir tmp
  cd tmp
  unzip ../releng/org.eclipse.triquetrum.repository/target/products/org.eclipse.triquetrum.workflow.editor.rcp.incubation-0.3.0M1-macosx.cocoa.x86_64.zip

See Also

Back to the top