Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.2.2
-
Fix Version/s: None
-
Component/s: CodeGen
-
Labels:None
-
Environment:Java 1.6
-
Number of attachments :
Description
Dennis,
I'm having a problem using codegen with based binding (which I need for the schema-library).
Since I'm calling codegen from java, I can't change the classpath or my current directory and I can only specify relative paths.
I have to use -t (target dir) which specifies the source and binding file location. -i requires a path from my working location, but the generated binding file ends up specifying the this link to the base binding file as relative to the compile root.
Just unzip this file, change line 1 to point to your core/lib and run it... it fails on the third codegen.
Take a look at the <include path="..."> in person-binding.xml
Thanks,
Don
My test schema looks like this
person.xsd <- address.xsd <- company.xsd
When I say change line 1, I mean in the run.sh script in this zip file.