Wrong base dir when using several levels of <include>
-----------------------------------------------------

         Key: JIBX-58
         URL: http://jira.codehaus.org/browse/JIBX-58
     Project: JiBX
        Type: Bug
  Components: core  
    Versions: 1.0-RC0    
    Reporter: Arnaud Lenfant
 Attachments: jibxInclude.zip


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to