Package dev.equo.ide.gradle
Class P2ModelDsl
- java.lang.Object
-
- dev.equo.ide.gradle.P2ModelDsl
-
- Direct Known Subclasses:
EquoIdeExtension
public class P2ModelDsl extends java.lang.ObjectThe DSL for defining a P2Model.
-
-
Field Summary
Fields Modifier and Type Field Description protected dev.equo.solstice.p2.P2Modelmodel
-
Constructor Summary
Constructors Constructor Description P2ModelDsl()P2ModelDsl(dev.equo.solstice.p2.P2Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(java.lang.String name, org.gradle.api.Action<dev.equo.solstice.p2.P2Model.Filter> filterSetup)Adds a filter with the given name.voidclearFilters()Removes all filters.voidinstall(java.lang.String target)Marks the given unit id for installation.voidp2repo(java.lang.String p2)Adds the given p2 repo to the list of repositories to populate the session with.voidremoveFilter(java.lang.String name)Removes the filter with the given name.
-
-
-
Method Detail
-
p2repo
public void p2repo(java.lang.String p2)
Adds the given p2 repo to the list of repositories to populate the session with.
-
install
public void install(java.lang.String target)
Marks the given unit id for installation.
-
addFilter
public void addFilter(java.lang.String name, org.gradle.api.Action<dev.equo.solstice.p2.P2Model.Filter> filterSetup)Adds a filter with the given name. Duplicate names are not allowed.
-
removeFilter
public void removeFilter(java.lang.String name)
Removes the filter with the given name. Throws an error if no such filter exists.
-
clearFilters
public void clearFilters()
Removes all filters.
-
-