JiBX
  1. JiBX
  2. JIBX-58

Wrong base dir when using several levels of <include>

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC0
    • Fix Version/s: 1.0-RC1
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      1

      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.

        Activity

        Hide
        Dennis Sosnoski added a comment -

        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.

        Show
        Dennis Sosnoski added a comment - 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.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Arnaud Lenfant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: