Details
Description
I have a Customer class, including a Contact class ( in a contact package ), itself including an address class ( in the contact package ). My bindings files mimic the same hierarchy.
Customer.jibx.xml:
<?xml version='1.0' encoding='UTF-8'?>
<binding>
<include path="contact/Contact.jibx.xml"/>
...
</binding>
contact/Contact.jibx.xml:
<?xml version='1.0' encoding='UTF-8'?>
<binding>
<include path="Address.jibx.xml"/>
...
</binding>
Upon include resolution:
- The binding for Customer includes the binding at
{baseDir}/contact.Contact.jibx.xml, which is fine ( baseDir being the location of the Customer binding ).
- The binding for Address tries to include {baseDir}/Address.jibx.xml, which fails because baseDir is still the location of the Customer binding.
Complete example attached.
I didn't actually try it with your code, but ran through a pretty comprehensive set of tests after duplicating with my own examples. I think it's all clean now, but please comment on this if not.