Uploaded image for project: 'Avalon Merlin Runtime'
  1. Avalon Merlin Runtime
  2. RUNTIME-28

documentation of include directive in block.xml for included files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 3.2.5, 3.3.0
    • 3.4.0
    • COMPOSITION
    • None
    • All

    Description

      Documentation and behaviour of the include directive for including files in block.xml are out of sync.

      Documentation examples show the include like:

      <include path="file.xml">
      or
      <include>
      <source path="file.xml">
      </include>
      and doesn't clearly state that the name is required on the include.

      In:
      avalon/composition/impl/src/java/org/apache/avalon/composition/data/builder/XMLContainmentProfileCreator.java
      On line 561:
      It is requiring the name attribute

      On line 584:
      It is getting the value of source element

      The result is that the block.xml that must conform to:
      <include name="required">
      <source>file.xml</source>
      </include>

      I'd have included a patch, but I don't know what needs to change, the doc or the code

      Attachments

        Activity

          People

            Unassigned Unassigned
            cfieber Cameron Fieber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: