Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Papyrus Oomph Setup Model has Gone to Mars

Hi, Team,

To follow up yesterday's message about updates to the releng tools to help buildmeisters to update the dependency repositories in the targlets in the Oomph setup model, there are some noteworthy changes today.

First, the format of the annotation is changed.  If you enable live validation in the Setup Editor, you will find that the source URI of annotations is checked for conformance to EMF's well-formedness rules for annotations source URIs.  These rules are stricter than the actual syntax of URIs:  EMF expects URIs that look like what EMF, itself, uses in annotations.

So, the annotations in the setup model are changed to no longer encode the entire B3 aggregation component reference in the source URI.  Instead, the annotations look like this:

         <repository
             url=""http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201408201631">http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201408201631">
           <annotation
             <detail
                 key="updateFrom">
               <value>GMF Notation</value>
             </detail>
           </annotation>
         </repository>

with an optional repository index in the case that a contribution specifies more than one enabled repository:

         <repository
             url=""http://download.eclipse.org/modeling/emft/mwe/updates/releases/R201406120758/mwe2lang">http://download.eclipse.org/modeling/emft/mwe/updates/releases/R201406120758/mwe2lang">
           <annotation
             <detail
                 key="updateFrom">
               <value>EMFT MWE:1</value>
             </detail>
           </annotation>
         </repository>

Also, to make it easy to configure these annotations (the contribution labels change sometimes, and occasionally we add new dependencies to Papyrus), I have added a new context menu action to the targlet repositories in the Oomph Setup Editor, in the org.eclipse.papyrus.releng.tools plug-in:


This prompts for an aggregation model to load and then asks which contribution (or repository if more than one is enabled for a contribution) to configure in the setup model:


The result is a targlet repository configured with the current repository URL from the B3 aggregation model and an annotation that will keep it up-to-date:


Of course, the action fully supports undo and redo.  :-)

All of these changes, including yesterday's, are on the master branch only.  The one setup model covers all active development branches, and so is only maintained on master.

Cheers,

Christian


Back to the top