Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2548

An init class is always executed even if it is in a excluded feature

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.1.4, 4.2.0
    • 4.0.1, 4.1.0
    • None
    • None

      I have the following init class

      <feature name="init.table-ref" depends="init">
              <extensions>
                  <extension point="org.ametys.runtime.plugin.InitExtensionPoint"
                             id="org.ametys.odf.PopulateOdfTableRef"
                             class="org.ametys.odf.PopulateOdfTableRef">
                 </extension>
              </extensions>
          </feature>
      

      The feature is excluded in runtime.xml

      <plugins>
          	<exclude>
                  <feature>odf/init.table-ref</feature>
          	</exclude>
          </plugins>
      

      But the PopulateOdfTableRef continue to be executed

          [RUNTIME-2548] An init class is always executed even if it is in a excluded feature

          Cannot reproduce it either, even with a dependant feature like in your example

          Raphaël Franchet added a comment - Cannot reproduce it either, even with a dependant feature like in your example

          I can't reproduce it.

          I created a plugin, put a new feature in it, with an init Class.
          It is correctly loaded.

          If I exclude it in the runtime.xml, it is not loaded, as wanted.

          Could you check again ?

          Cédric Damioli added a comment - I can't reproduce it. I created a plugin, put a new feature in it, with an init Class. It is correctly loaded. If I exclude it in the runtime.xml, it is not loaded, as wanted. Could you check again ?

            cedric Cédric Damioli
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: