Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Specifying restrictions on a P2 director(Syntax for restriction)
Specifying restrictions on a P2 director [message #1860912] Fri, 08 September 2023 12:26 Go to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
When using the oomph setup editor, if I click on the restrictions property on a P2 director element I am provided with a list of choices. Is it possible to use a boolean expression under feature. Here are two examples and I would like if you could comment on both as to whether they are possible:

Feature not equal to product x, version y
Feature version > y for product x

Thanks for the pointer.
Re: Specifying restrictions on a P2 director [message #1860925 is a reply to message #1860912] Sat, 09 September 2023 07:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
A restriction is just a list of scopes:
 EList<Scope> getRestrictions();
and is just used when gathering tasks to skip a task when all the given scopes are not "selected".

https://github.com/eclipse-oomph/oomph/blob/d9218b44aa6d97dfc08d5fae65717ebbaf8fddfb/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/SetupTaskPerformer.java#L1717-L1732

There are a bunch of predefined variables that could be used in filters:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Predefined_Variables

But the version name (scope.product.version.name) is not generally a number that you can use for order comparison though...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Targlet requirement filter with oomph variable
Next Topic:Calling a script within a oomph setup
Goto Forum:
  


Current Time: Wed May 08 01:50:41 GMT 2024

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

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

Back to the top