I've seen similar questions on the forum, but not the exact problem I'm having, so I decided to make a new post.
Using python connector, I have a connector.xml,, and 2 rti generated files (idl to xml), foo.xml, and fooDefs.xml. foo.xml contains a "<include file="fooDefs.xml">
This works fine:
folder/connector.xml
folder/foo.xml
folder/fooDefs.xml
connector.xml:
<types>
<include file="foo.xml/>
</types>
But the following results in: DDS_XMLFileInfoList_assertFile:!open file: xml/fooDefs.xml.
I believe the reason it fails is bcause foo.xml contains the following
<include file="fooDefs.xml">
folder/connector.xml
folder/xml/foo.xml
folder/xml/fooDefs.xml
connector.xml
<types>
<include file="xml/foo.xml/>
</types>
It seems the "include file=" that is in foo.xml is expected to be relative to the connector.xml location. Is there a way around this, other than putting the connector.xml and all the type xml files in the same folder? Both foo.xml and fooDefs.xml are auto generated by rti, so I don't want to modify the "include file=" if I don't have to.
Thanks!
Bobby
Hello Bobby,
Sorry for the late response. I verified your use case with an example of my own:
In order to have the include in shapetype.xml to stay <include file="fill.xml"/> you have to start from the xmlfiles/ directory
This seems to we working for me because now all the path in the files stored in xmlfiles are relative to the CWD and CWD=xmlfiles. The file connector.xml is loaded anyway because when i load it in the python script i give the full path:
Where file_path is:
Just as a future reference, the issue that you experiencing, has already a Jira ticket assigned (CORE-11732)
I hope this workaround helps for now.
Best,
Gianpiero
Thanks Gianpiero for the very thorough explanation. I was worried that I'd have to keep my connector.xml in the same folder as my types.xml, but I see that is not the case.
The workaround you described does help.
Thanks!
Bobby