-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java short name #19
Java short name #19
Conversation
This modification is due to the issue that when the XSD file contains Chinese labels, the generated paths include Chinese characters, causing the JAR file to fail execution. Therefore, Java short names are used to avoid this problem. |
@whatever098 I took your uof.xsd from #18 (comment) and I was able to get scomp to build classes and a jar for the xsd. Used this command:
I built XMLBeans using the latest trunk code. I don't see a need for this PR. |
@pjfanning More precisely, the reason is that we expect to generate the alias of the tag as the name of the xsbs in the jar, rather than the tag name. there is not any problem in the usage of you command, but the generated jar uses Chinese names as xsb's names. So this will cause the xsb to not be found at runtime. |
I tested the jar I generated and was able to use it ok with no issues.
|
Are you running in Windows or Linux? |
Macbook. |
@pjfanning I am now using the trunk branch to test some xsd on my computer. I did not find any problems, but the above problem existed when I used xmlbeans-5.1.1 before. It should be that there are some related fixes for this problem in the trunk. In this case, this PR is unnecessary and you can close it immediately. Thank you for your help. |
see #15
The source code encoding param was added separately using #16
fyi @whatever098 - would you be able to provide a detailed description of what problem you have (with examples) and how this code solves it?