Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
3.2.5, 3.3.0
-
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