Class P2ModelDsl

  • Direct Known Subclasses:
    P2ModelDslWithCatalog

    public class P2ModelDsl
    extends java.lang.Object
    The DSL for defining a P2Model.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected dev.equo.solstice.p2.P2Model model  
    • 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
      void addFilter​(java.lang.String name, org.gradle.api.Action<dev.equo.solstice.p2.P2Model.Filter> filterSetup)
      Adds a filter with the given name.
      void clearFilters()
      Removes all filters.
      void install​(java.lang.String target)
      Marks the given unit id for installation.
      void p2repo​(java.lang.String p2)
      Adds the given p2 repo to the list of repositories to populate the session with.
      void removeFilter​(java.lang.String name)
      Removes the filter with the given name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • model

        protected final dev.equo.solstice.p2.P2Model model
    • Constructor Detail

      • P2ModelDsl

        public P2ModelDsl​(dev.equo.solstice.p2.P2Model model)
      • P2ModelDsl

        public P2ModelDsl()
    • 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.