[ http://jira.codehaus.org/browse/JIBX-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Corley updated JIBX-419: ---------------------------- Attachment: codegen.patch This patch should fix the problem. The first two lines are optional, they say if the binding location is relative, make it relative to the target dir. The second two lines fix this bug. If the binding file location is at or below the target directory, don't include the target directory name. Dennis... nice code; easy to understand. Better than my code. Don > Inconsistent classpaths when using a base binding file in CodeGen > ----------------------------------------------------------------- > > Key: JIBX-419 > URL: http://jira.codehaus.org/browse/JIBX-419 > Project: JiBX > Issue Type: Bug > Components: CodeGen > Affects Versions: JiBX 1.2.2 > Environment: Java 1.6 > Reporter: Don Corley > Assignee: Dennis Sosnoski > Attachments: codegen.patch, test.zip > > > 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 -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs